:root {
  --primary-blue: #00448b;
  --accent-orange: #ff6e00;
  --sidebar-bg: linear-gradient(180deg, #00448b 0%, #003366 100%);
  --sidebar-active: #ff6e00;
  --sidebar-hover: #005fa3;
}

body { 
  background-color: #f8f9fa; 
  font-family: 'Adobe Clean', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; 
  color: #2d3748; 
  line-height: 1.1;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
} 
 
.card { 
  border-radius: 1rem; 
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
} 

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
 
.card-header h4 { 
  font-weight: 700; 
  color: #1a202c;
  letter-spacing: -0.025em;
  font-size: 1.25rem;
} 
 
.login-body { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
} 

.login-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}
 
.login-card { 
  width: 100%; 
  max-width: 420px; 
  border-radius: 1.5rem; 
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
} 
 
.accordion-button:focus { 
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); 
  outline: none;
} 
 
.accordion-button:not(.collapsed) { 
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 
  color: #fff; 
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
} 
 
.accordion-body a { 
  color: #3b82f6; 
  text-decoration: none; 
  font-weight: 500;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
} 

.accordion-body a:hover {
  color: #1d4ed8;
  border-bottom-color: #3b82f6;
}
 
.sidebar { 
  min-height: 100vh; 
  padding-top: 1.5rem; 
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  position: relative;
} 
 
.sidebar a.nav-link.active { 
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); 
  font-weight: 600; 
  color: white;
  border-radius: 0 1rem 1rem 0;
  margin-right: 0.3rem;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
} 



 
.card-title { 
  font-size: 1.125rem; 
  margin-bottom: 0.75rem; 
  font-weight: 600;
  color: #1a202c;
  letter-spacing: -0.025em;
} 
 
.card .card-text { 
  font-weight: 500; 
  color: #4a5568;
  font-size: 0.875rem;
} 
 
.table-responsive { 
  max-height: 400px; 
  overflow-y: auto; 
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
} 

.table-responsive::-webkit-scrollbar {
  width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
 
.dropdown .btn { 
  padding: 0.5rem 0.75rem; 
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
} 

.dropdown .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
 
.sidebar-link { 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
  font-weight: 500;
} 

.sidebar-link:hover, 
.sidebar-sub-link:hover { 
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%); 
  color: #fff; 
  border-radius: 0 2rem 2rem 0; 
  margin-right: 1rem;
  transform: translateX(4px);
  box-shadow: 0 4px 6px -1px rgba(74, 85, 104, 0.3);
} 
 
.sidebar-sub-link { 
  font-size: 0.875rem; 
  padding-left: 2.5rem; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0.5rem;
  margin: 0.125rem 0.5rem;
  font-weight: 500;
  color: #a0aec0;
} 
 
.sidebar .nav-link i { 
  font-size: 0.875rem;
  margin-right: 0.50rem;
  transition: transform 0.2s ease;
} 

.sidebar .nav-link:hover i {
  transform: scale(1.1);
}


a.nav-link:hover{
  text-decoration: none;
  color: chocolate !important;
}

.sidebar-sticky { 
  min-height: 100vh; 
  background: var(--sidebar-bg) !important; 
  position: relative;
}

.sidebar-sticky::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  pointer-events: none;
}

/* Additional modern enhancements */
.btn {
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: 0.025em;
}

.btn:hover {
  transform: translateY(-1px);
}

.form-control, .form-select {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table {
  border-radius: 0.75rem;
  overflow: hidden;
}

.table th {
  background-color: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.table td {
  vertical-align: middle;
  color: #4a5568;
  font-size: 0.875rem;
}

.table tbody tr:hover {
  background-color: #f8fafc;
  transition: background-color 0.2s ease;
}

.badge {
  border-radius: 9999px;
  font-weight: 500;
  letter-spacing: 0.025em;
}

.alert {
  border-radius: 0.75rem;
  border: none;
  font-weight: 500;
}

.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  border-radius: 1rem 1rem 0 0;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 1rem 1rem;
}

.sidebar,
.sidebar-sticky {
  background: var(--sidebar-bg) !important;
  color: #fff;
}

.sidebar-link {
  color: #fff !important;
  border-radius: 0.5rem;
  margin: 0.25rem 0.5rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sidebar-link:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
  background: var(--sidebar-hover);
}

.sidebar-link.active, .sidebar-link[aria-current="page"] {
  background: var(--sidebar-active);
  color: #fff !important;
  box-shadow: 0 4px 12px -2px rgba(255,110,0,0.15);
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: #fff !important;
}

.btn-primary {
  background-color: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-orange) !important;
  border-color: var(--accent-orange) !important;
}

.badge-primary, .bg-primary {
  background-color: var(--primary-blue) !important;
}

.badge-accent, .bg-accent {
  background-color: var(--accent-orange) !important;
  color: #fff;
}

/* Improve focus for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Fix dropdown menu overlay in table cells */
.table-responsive .dropdown-menu {
  z-index: 1050 !important;
}
.position-static .dropdown-menu {
  z-index: 1050 !important;
}
@media (min-width: 768px) {
  .table-responsive {
    overflow: visible !important;
  }
}

/* Sticky footer styles */
footer {
 /* position: sticky; */ 
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f8f9fa;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
  padding: 30px 0 0 0;
  text-align: center;
  font-size: 1rem;
  color: #6c757d;
  border-top: 1px solid #e2e8f0;
  letter-spacing: 0.02em;
}

html, body {
  height: 100%;
}
.container-fluid {
  flex: 1 0 auto;
}



.nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: white;
    text-decoration: none;
    background: 0 0;
    border: 0;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}