/* Main stylesheet for Správce pronájmu - Ultra Dark Modern Theme - All In One */

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

/* Basic Bootstrap Grid */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 95%;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 95%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 95%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 95%;
  }
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Basic form classes */
.form-control {
  display: block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Font Awesome replacements */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Main theme starts here */

:root {
  --primary: #2c7be5;
  --secondary: #1d1d1f;
  --success: #42ba96;
  --danger: #df4759;
  --warning: #f6c343;
  --info: #467fd0;
  --light: #f8f9fa;
  --dark: #212529;
  --darker: #161b22;
  --accent: #2c7be5;
  --card-bg: #2a2c32;
  --input-bg: #1c1e23;
  --border-color: #3a3f49;
  --hover-color: rgba(44, 123, 229, 0.1);
  --glow-shadow: 0 0 10px rgba(44, 123, 229, 0.3);
  --muted-text: #9da9bb;
}

body {
  background-color: var(--dark);
  color: var(--light);
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #1c1e24 0%, var(--dark) 100%);
  opacity: 0.95;
  z-index: -1;
}

.dark-mode {
  --primary: #2c7be5;
  --light: #f8f9fa;
  --dark: #212529;
  --darker: #161b22;
  --card-bg: #2a2c32;
  --input-bg: #1c1e23;
  --border-color: #3a3f49;
  --muted-text: #9da9bb;
}

.light-mode {
  --primary: #2c7be5;
  --light: #212529;
  --dark: #ffffff;
  --darker: #f8f9fa;
  --card-bg: #ffffff;
  --input-bg: #f8f9fa;
  --border-color: #e5e8eb;
  --muted-text: #6c757d;
  color: #212529;
}

/* Header */
.navbar {
  background-color: var(--darker) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 600;
  color: var(--primary) !important;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  position: relative;
  margin: 0 5px;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  color: var(--light) !important;
  font-weight: 500;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

/* Dashboard cards */
.dashboard-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(187, 134, 252, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 0;
}

.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-shadow);
  border-color: var(--accent);
}

.card-title {
  position: relative;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
}

/* Tables */
.table-container {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  width: 100%;
}

.table-container:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.table {
  color: var(--light);
  margin-bottom: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.table thead th {
  background-color: var(--darker);
  color: var(--light);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
  background-color: rgba(44, 123, 229, 0.05);
}

.table td {
  padding: 10px 8px;
  vertical-align: middle;
}

/* Mobile table container - Eliminates scrollbars */
.mobil-table-container {
  width: 100%;
  margin-bottom: 1rem;
}

/* Custom scrollbar - Subtle scrollbars when needed */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* For extra small screens only */
@media (max-width: 767px) {
  .mobil-table-container {
    overflow-x: auto;
  }
}

/* Forms */
.form-control, .form-select {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--light);
  border-radius: 4px;
  padding: 8px 12px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  height: auto;
}

.form-control:focus, .form-select:focus {
  background-color: var(--input-bg);
  border-color: var(--primary);
  color: var(--light);
  box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.25);
  outline: none;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--muted-text);
  font-size: 0.9rem;
}

.form-text {
  color: var(--muted-text);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Make inputs more compact in tables */
.table .form-control {
  padding: 6px 8px;
  font-size: 0.85rem;
  min-height: 32px;
}

.input-group {
  display: flex;
  position: relative;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  background-color: var(--darker);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  position: relative;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1a68d1;
  box-shadow: 0 2px 6px rgba(44, 123, 229, 0.3);
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-danger:hover {
  background-color: #d32f2f;
  box-shadow: 0 2px 6px rgba(223, 71, 89, 0.3);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-success:hover {
  background-color: #2ea97e;
  box-shadow: 0 2px 6px rgba(66, 186, 150, 0.3);
}

.btn-info {
  background-color: var(--info);
  color: white;
}

.btn-info:hover {
  background-color: #3070c0;
  box-shadow: 0 2px 6px rgba(70, 127, 208, 0.3);
}

.btn-group {
  display: flex;
  gap: 0.5rem;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(187, 134, 252, 0.5); }
  50% { box-shadow: 0 0 15px rgba(187, 134, 252, 0.8); }
  100% { box-shadow: 0 0 5px rgba(187, 134, 252, 0.5); }
}

.glow-effect {
  animation: glow 2s infinite;
}

/* Input fields */
input[type="text"], 
input[type="number"],
input[type="date"],
select {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--light);
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  width: 100%;
}

input[type="text"]:focus,
input[type="number"]:focus, 
input[type="date"]:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.25);
  outline: none;
  background-color: rgba(45, 45, 45, 0.8);
}

input[type="text"]::placeholder,
input[type="number"]::placeholder, 
input[type="date"]::placeholder,
select::placeholder {
  color: rgba(224, 224, 224, 0.4);
}

/* Modal styles */
.modal-content {
  background-color: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  background-color: var(--darker);
  padding: 15px 20px;
}

.modal-body {
  padding: 20px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--darker);
  padding: 15px 20px;
}

.modal-title {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
}

/* Badge styles */
.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.bg-secondary {
  background-color: var(--accent) !important;
  color: black;
}

/* Charts and dashboard elements */
.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 1.5rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  overflow: hidden;
}

.chart-container:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--info);
}

.stats-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.stats-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.stats-card h3 {
  color: var(--muted-text);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 500;
  position: relative;
}

.stats-card .value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.5rem;
  position: relative;
}

/* Dashboard row spacing */
.row.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  
  .container {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col, [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .stats-card {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  
  .table-container {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .table td, .table th {
    padding: 6px 4px;
    font-size: 0.8rem;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* Better typography */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.4;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--muted-text);
}

/* Theme toggle switch */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--card-bg);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 2px;
  background-color: var(--primary);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--darker);
}

input:checked + .slider:before {
  transform: translateX(23px);
  background-color: #f8f9fa;
}

/* Edit indicators */
.editable-cell {
  position: relative;
}

.editable-cell:hover {
  background-color: rgba(44, 123, 229, 0.05);
}

/* Debt indicators */
.debt-positive {
  color: var(--success);
  font-weight: 600;
}

.debt-negative {
  color: var(--danger);
  font-weight: 600;
}

/* Suggested payment styles */
.suggested-payment {
  animation: pulse-highlight 2s infinite;
}

@keyframes pulse-highlight {
  0% { background-color: rgba(255, 193, 7, 0.1); }
  50% { background-color: rgba(255, 193, 7, 0.25); }
  100% { background-color: rgba(255, 193, 7, 0.1); }
}

/* Additional utility classes */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.text-center {
  text-align: center !important;
}

/* Fix table wrapping */
.table-container {
  width: 100%;
  overflow-x: auto;
}

/* Small text in tables */
.small-font {
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Archive related styles */
.archive-badge {
  background-color: var(--card-bg);
  color: var(--light);
  border-left: 3px solid var(--warning);
  padding: 12px 16px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.archive-badge:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.archive-actions {
  display: flex;
  gap: 8px;
}

/* Details section */
details {
  margin-bottom: 1rem;
}

details summary {
  cursor: pointer;
  padding: 1rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  list-style: none;
  display: flex;
  align-items: center;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  margin-right: 0.75rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

details[open] summary::before {
  content: '−';
  background-color: var(--muted-text);
}

details summary:hover {
  background-color: rgba(44, 123, 229, 0.05);
}

details summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.1rem;
  color: var(--light);
}

details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: 1px solid var(--primary);
  margin-bottom: 0;
}

details[open] .mobil-table-container {
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  animation: slideDown 0.2s ease-out forwards;
  border: 1px solid var(--border-color);
  border-top: none;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Action buttons */
.action-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-buttons .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Page header styling */
h1 {
  color: var(--light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--primary);
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 100;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 101;
  overflow-y: auto;
  padding: 1rem;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  max-width: 500px;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

.modal-dialog-scrollable {
  display: flex;
  max-height: calc(100% - 3.5rem);
}

.modal-lg {
  max-width: 800px;
}

.modal-xl {
  max-width: 1140px;
}

.modal-sm {
  max-width: 300px;
}

/* Toast styling */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background-color: var(--card-bg);
  color: var(--light);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.75rem 1rem;
  width: 300px;
  animation: toastIn 0.3s ease forwards;
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-info {
  border-left-color: var(--info);
}

.toast-success {
  border-left-color: var(--success);
}

.toast-danger {
  border-left-color: var(--danger);
}

.toast-warning {
  border-left-color: var(--warning);
}

.toast-body {
  flex: 1;
  padding-right: 0.5rem;
  font-size: 0.9rem;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--muted-text);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  color: var(--light);
}

.toast-hiding {
  animation: toastOut 0.3s ease forwards;
}

@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* Fix for nested tables and inputs */
.table tr td.padding-0 {
  padding: 0;
}

/* Help tooltip */
.help-tooltip {
  display: inline-block;
  margin-left: 0.25rem;
  color: var(--muted-text);
  cursor: help;
}

.help-tooltip:hover {
  color: var(--primary);
}