/* ============================================
   Operation Travel Management System
   Modern Mobile-First Theme
   ============================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  /* Primary Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;
  
  /* Secondary Colors */
  --secondary: #64748b;
  --secondary-hover: #475569;
  
  /* Success, Warning, Danger */
  --success: #10b981;
  --success-hover: #059669;
  --warning: #f59e0b;
  --warning-hover: #d97706;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  
  /* Neutrals */
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --bg-dark: #1e293b;
  --bg-darker: #0f172a;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-light: #f8fafc;
  
  /* Borders */
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Sidebar Width */
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
}

/* ---------- Typography ---------- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* ---------- Loading Spinner ---------- */
#loading {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#loading.active {
  display: flex;
}

.sk-fading-circle {
  width: 50px;
  height: 50px;
  position: relative;
}

.sk-fading-circle .sk-circle {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.sk-fading-circle .sk-circle:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 12%;
  height: 12%;
  background-color: var(--primary);
  border-radius: 100%;
  animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
}

.sk-fading-circle .sk-circle2 { transform: rotate(30deg); }
.sk-fading-circle .sk-circle3 { transform: rotate(60deg); }
.sk-fading-circle .sk-circle4 { transform: rotate(90deg); }
.sk-fading-circle .sk-circle5 { transform: rotate(120deg); }
.sk-fading-circle .sk-circle6 { transform: rotate(150deg); }
.sk-fading-circle .sk-circle7 { transform: rotate(180deg); }
.sk-fading-circle .sk-circle8 { transform: rotate(210deg); }
.sk-fading-circle .sk-circle9 { transform: rotate(240deg); }
.sk-fading-circle .sk-circle10 { transform: rotate(270deg); }
.sk-fading-circle .sk-circle11 { transform: rotate(300deg); }
.sk-fading-circle .sk-circle12 { transform: rotate(330deg); }

.sk-fading-circle .sk-circle2:before { animation-delay: -1.1s; }
.sk-fading-circle .sk-circle3:before { animation-delay: -1s; }
.sk-fading-circle .sk-circle4:before { animation-delay: -0.9s; }
.sk-fading-circle .sk-circle5:before { animation-delay: -0.8s; }
.sk-fading-circle .sk-circle6:before { animation-delay: -0.7s; }
.sk-fading-circle .sk-circle7:before { animation-delay: -0.6s; }
.sk-fading-circle .sk-circle8:before { animation-delay: -0.5s; }
.sk-fading-circle .sk-circle9:before { animation-delay: -0.4s; }
.sk-fading-circle .sk-circle10:before { animation-delay: -0.3s; }
.sk-fading-circle .sk-circle11:before { animation-delay: -0.2s; }
.sk-fading-circle .sk-circle12:before { animation-delay: -0.1s; }

@keyframes sk-circleFadeDelay {
  0%, 39%, 100% { opacity: 0; }
  40% { opacity: 1; }
}

/* ---------- Header / Navbar ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%) !important;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  min-height: 60px;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-toggler {
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
}

.navbar-toggler:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.navbar-nav .nav-link .material-icons {
  font-size: 1.25rem;
}

.lang-nav .dropdown-menu {
  min-width: 120px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border: none;
  overflow: hidden;
}

/* ---------- Main Page Layout ---------- */
#pg {
  padding-top: 70px;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
#menu {
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  min-height: calc(100vh - 70px);
  position: fixed;
  top: 60px;
  right: 0;
  width: var(--sidebar-width);
  z-index: 1020;
  transition: transform var(--transition);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

#menu::-webkit-scrollbar {
  width: 4px;
}

#menu::-webkit-scrollbar-track {
  background: transparent;
}

#menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

#menu .navbar-brand {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem;
}

#menu .navbar-brand img {
  max-width: 100%;
  height: auto;
  max-height: 80px;
}

#menu hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0 1rem;
}

#ulmenu {
  padding: 1rem 0;
  width: 100%;
}

#ulmenu li {
  margin-bottom: 4px;
}

#ulmenu .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 0;
  border-right: 3px solid transparent;
  transition: all var(--transition);
  font-weight: 500;
}

#ulmenu .nav-link:hover,
#ulmenu .nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-right-color: var(--primary);
}

#ulmenu .nav-link .material-icons {
  font-size: 1.35rem;
  opacity: 0.9;
}

/* User dropdown in sidebar */
#menu .dropdown {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#menu .dropdown-toggle {
  font-weight: 500;
}

#menu .dropdown-menu {
  background: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

#menu .dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  transition: all var(--transition-fast);
}

#menu .dropdown-menu .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- Main Content Area ---------- */
.col.py-3 {
  margin-right: var(--sidebar-width);
  padding: var(--spacing-lg) !important;
  background: var(--bg-body);
  min-height: calc(100vh - 70px);
  transition: margin-right var(--transition);
}

#content {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-lg);
}

/* ---------- Cards ---------- */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: none;
}

.card-body {
  padding: 1.5rem;
}

/* ---------- Filter Section ---------- */
.filter {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow);
}

.form-filter {
  gap: var(--spacing-md);
}

.form-filter .form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.input-group-text {
  background: var(--bg-body);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
}

.input-group-text .material-icons {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  height: auto;
  padding: 0.5rem 0.75rem;
}

.select2-container--default .select2-selection--single:focus {
  border-color: var(--primary);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
  padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
}

.select2-dropdown {
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  font-size: 0.9375rem;
}

.btn .material-icons {
  font-size: 1.25rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-hover) 0%, #047857 100%);
  transform: translateY(-1px);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, var(--warning-hover) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--warning-hover) 0%, #b45309 100%);
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-hover) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--danger-hover) 0%, #b91c1c 100%);
  transform: translateY(-1px);
}

.btn-add {
  margin-bottom: var(--spacing-lg);
}

.btn-edit {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ---------- Tables ---------- */
.table {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: var(--spacing-lg);
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.table thead {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.table thead.table-dark {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.table thead th,
.table thead td {
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table tbody tr {
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background-color: rgba(37, 99, 235, 0.04);
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tfoot {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.table tfoot.table-dark {
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.table tfoot td {
  color: white;
  font-weight: 600;
  padding: 1rem;
  border: none;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-of-type(odd):hover {
  background-color: rgba(37, 99, 235, 0.04);
}

/* ---------- Fieldset / Legend ---------- */
fieldset {
  background: var(--bg-card);
  border: 2px solid var(--border-color) !important;
  border-radius: var(--border-radius);
  padding: var(--spacing-lg) !important;
  margin-bottom: var(--spacing-lg);
}

legend {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
  padding: 0 var(--spacing-sm);
  width: auto;
  margin-bottom: var(--spacing-md);
}

/* ---------- Pagination ---------- */
.pagination {
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-item .page-link {
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.page-item .page-link:hover {
  background: var(--primary);
  color: white;
}

.page-item.active .page-link {
  background: var(--primary);
  color: white;
}

/* ---------- Alerts ---------- */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  margin-bottom: var(--spacing-lg);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success-hover);
  border-right: 4px solid var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-hover);
  border-right: 4px solid var(--warning);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-hover);
  border-right: 4px solid var(--danger);
}

.alert-info {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-dark);
  border-right: 4px solid var(--primary);
}

/* ---------- Print Bar ---------- */
#bar {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

#print_btn {
  padding: 0.75rem 1.25rem;
}

/* ---------- Login Page ---------- */
#form-content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.form-signin {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.form-signin img {
  margin-bottom: 2rem;
  max-width: 100%;
  height: auto;
}

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

.form-signin .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 1rem;
}

/* ---------- Footer ---------- */
.bg-ddblack {
  background: var(--bg-darker);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 0;
  margin-top: auto;
}

.copy-p {
  margin: 0;
  font-size: 0.875rem;
}

.copy-p span {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* ---------- Voucher Styles ---------- */
.voucher-container {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Dashboard Welcome Section ---------- */
#content h4 {
  margin-top: var(--spacing-lg);
}

#content h4 a {
  font-weight: 700;
}

#content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Hide on mobile */
@media screen and (max-width: 991.98px) {
  .hide-mob,
  .hide-mobile {
    display: none !important;
  }
}

/* Mobile Breakpoint */
@media screen and (max-width: 991.98px) {
  /* Sidebar mobile behavior */
  #menu {
    transform: translateX(100%);
    width: 280px;
  }
  
  #menu.show {
    transform: translateX(0);
  }
  
  /* Backdrop for mobile menu */
  #menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  
  #menu.show::before {
    opacity: 1;
    visibility: visible;
  }
  
  /* Main content full width on mobile */
  .col.py-3 {
    margin-right: 0;
    padding: var(--spacing-md) !important;
  }
  
  /* Filter section mobile */
  .filter {
    padding: var(--spacing-md);
  }
  
  .form-filter .col-sm-4 {
    margin-bottom: var(--spacing-md);
  }
  
  /* Cards mobile */
  .card-body {
    padding: 1rem;
  }
  
  /* Fieldset mobile */
  fieldset {
    padding: var(--spacing-md) !important;
  }
  
  /* Content padding mobile */
  #content {
    padding: var(--spacing-lg);
  }
  
  /* Login page mobile */
  .form-signin {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
}

/* Small mobile */
@media screen and (max-width: 575.98px) {
  html {
    font-size: 14px;
  }
  
  #content {
    padding: var(--spacing-md);
  }
  
  .form-signin {
    padding: 1.5rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
  
  .pagination {
    gap: 2px;
  }
  
  .page-item .page-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   MOBILE TABLE - CARD VIEW
   ============================================ */
@media screen and (max-width: 991.98px) {
  /* Transform table to card layout on mobile */
  .table-mobile-cards {
    display: block;
  }
  
  .table-mobile-cards thead {
    display: none;
  }
  
  .table-mobile-cards tbody {
    display: block;
  }
  
  .table-mobile-cards tbody tr {
    display: block;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    border-right: 4px solid var(--primary);
  }
  
  .table-mobile-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .table-mobile-cards tbody td:last-child {
    border-bottom: none;
  }
  
  .table-mobile-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    flex: 1;
  }
  
  .table-mobile-cards tbody td > * {
    flex: 1;
    text-align: left;
  }
  
  .table-mobile-cards tfoot {
    display: block;
    background: var(--bg-dark);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
  }
  
  .table-mobile-cards tfoot tr {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }
  
  .table-mobile-cards tfoot td {
    color: white;
    padding: 0.5rem;
  }
}

/* Responsive table wrapper for horizontal scroll */
.table-responsive-custom {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.table-responsive-custom .table {
  margin-bottom: 0;
  box-shadow: none;
}

.table-responsive-custom::-webkit-scrollbar {
  height: 8px;
}

.table-responsive-custom::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 4px;
}

.table-responsive-custom::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* Print Styles */
@media print {
  #header,
  #menu,
  #bar,
  .filter,
  .btn-add,
  .btn-edit,
  .pagination,
  .navbar,
  .hide-print {
    display: none !important;
  }
  
  .col.py-3 {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .table {
    box-shadow: none;
  }
  
  body {
    background: white;
  }
}

/* Status Colors */
.status-positive {
  color: var(--success);
  font-weight: 600;
}

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

/* Add input button */
.add_input {
  cursor: pointer;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-sm) auto;
  transition: all var(--transition-fast);
}

.add_input:hover {
  background: var(--primary-hover);
  transform: scale(1.1);
}

/* Inputs in add forms */
.inputs-add input,
.selects-add select,
.selects-append select {
  margin-bottom: var(--spacing-sm);
}

/* Badge-like elements */
.badge-status {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-hover);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning-hover);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-hover);
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection styling */
::selection {
  background: var(--primary);
  color: white;
}

/* Import Mobile Tables Styles */
@import url('mobile-tables.css');
