/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=League+Gothic&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Admin Report Modal Template - Consistent Styling */
.admin-report-modal .modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.admin-report-modal .modal-header {
    background: #00880B;
    color: white;
    border-bottom: 1px solid #006a08;
    border-radius: 12px 12px 0 0;
}

.admin-report-modal .modal-header .modal-title {
    color: white;
}

.admin-report-modal .modal-header .btn-close {
    filter: invert(1);
}

.admin-report-modal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.admin-report-modal .btn-primary {
    background: #00880B;
    border-color: #00880B;
    color: white;
}

.admin-report-modal .btn-primary:hover {
    background: #006a08;
    border-color: #006a08;
    color: white;
}

.admin-report-modal .btn-download {
    background: #00880B;
    border-color: #00880B;
    color: white;
}

.admin-report-modal .btn-download:hover {
    background: #006a08;
    border-color: #006a08;
    color: white;
}

.admin-report-modal .btn-next {
    background: #00880B;
    border-color: #00880B;
    color: white;
}

.admin-report-modal .btn-next:hover {
    background: #006a08;
    border-color: #006a08;
    color: white;
}

.admin-report-modal .btn-pdf {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.admin-report-modal .btn-pdf:hover {
    background: #c82333;
    border-color: #c82333;
    color: white;
}

/* Step indicators for multi-step modals */
.admin-report-modal .step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.admin-report-modal .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.admin-report-modal .step-number.active {
    background: #00880B;
    color: white;
}

.admin-report-modal .step-number.completed {
    background: #00880B;
    color: white;
}

.admin-report-modal .step-line {
    width: 60px;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.admin-report-modal .step-line.completed {
    background: #00880B;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  width: auto;
}

.stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #eee;
  transition: 0.2s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-content .stat-title {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.stat-content .stat-value {
  font-size: 28px;
  font-weight: 600;
  color: #0f0f0f;
  margin: 5px 0;
}

.stat-content .stat-change {
  font-size: 14px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-change.positive {
  color: #1f9d55; /* green */
}

.stat-icon {
  font-size: 22px;
  background-color: #f0f0f0;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
}

.bg-blue {
  background-color: #e8f0ff;
  color: #0039a6;
}

.bg-green {
  background-color: #e8fce8;
  color: #218739;
}

.bg-yellow {
  background-color: #fff9db;
  color: #b58900;
}

.bg-red {
  background-color: #ffe8e8;
  color: #d62424;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #000000;
}

/* Login Page Styling */
.login-body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to top, #000000, #004303);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-body .kld-logo{
    width: 100px;
    display: block;
    margin: auto;
}

.login-body .kandili-logo{
    width: 200px;
    display: block;
    margin: auto;
    padding-bottom: 20px;
}

.login-container {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-container h2 {
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 600;
}

.login-container form {
  display: flex;
  flex-direction: column;
}

.login-container label {
  text-align: left;
  font-weight: 500;
  margin: 0.75rem 0 0.25rem;
  color: #555;
}

.login-container input {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.3s ease;
}

.login-container input:focus {
  border-color: #4CAF50;
}

.login-container button {
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: none;
  background-color: #4CAF50;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover {
  background-color: #45a049;
}

.error {
  background-color: #ffe0e0;
  color: #d10000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}


/* Base Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: green;
}

button, input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Table Styles */
table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
    background-color: white;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
}

/* Form Styles */
form input, form select {
    padding: 8px;
    margin: 6px 0;
    width: 100%;
    box-sizing: border-box;
}

form {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    
}

.login-modal form {
    padding: 10px 0;
}

/* Sidebar Styling */
.sidebar {
    width: 220px;
    background-color: white;
    color: white;
    position: fixed;
    height: 100%;
    overflow: auto;
    transition: width 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar a {
    display: block;
    color: rgb(0, 0, 0);
    padding: 14px 20px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar a:hover {
    background-color: #45a049;
}

.sidebar .toggle-btn {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background-color: #388E3C;
    color: white;
    font-size: 16px;
}

.sidebar.collapsed a {
    text-align: center;
    font-size: 14px;
    padding: 10px;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s;
}

.main-content.collapsed {
    margin-left: 70px;
}

/* Header */
.header {
    background-color: #2e7d32;
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header a {
    text-decoration: none;
    color: white;
}

.right-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

#clock {
    font-size: 14px;
    color: rgb(0, 0, 0);
}

#date {
    font-size: 14px;
    color: rgb(0, 0, 0);
}

        /* Footer */
        .footer {
          background: linear-gradient(to top, #000000, #004303);
          color: var(--white);
          padding: 3rem 8rem;
      }

      .footer * {
          color: var(--white);
      }

      .footer-content {
          max-width: 1200px;
          margin: 0 auto;
          display: grid;
          grid-template-columns: repeat(3, 1fr);
          gap: 3rem;
      }

      .footer-section h3 {
          font-weight: 600;
          margin-bottom: 1rem;
          color: var(--white);
      }

      .footer-section a {
          color: var(--white);
          text-decoration: none;
          display: block;
          margin-bottom: 0.5rem;
          transition: opacity 0.3s ease;
      }

      .footer-section a:hover {
          opacity: 0.8;
          color: #0ccf46;
      }

      .footer-section p {
          color: var(--white);
      }

      .footer-logo {
          display: flex;
          align-items: center;
          gap: 1rem;
          margin-bottom: 1rem;
      }

      .footer-logo img {
          height: 70px;
          width: auto;
      }

      .footer-logo strong {
          font-family: 'Bebas Neue', 'Poppins', sans-serif;
          font-size: 24px;
          line-height: 1;
          font-weight: 500;
          color: white;
      }

      .footer-logo small {
          color: white;
      }

      @media (max-width: 768px) {
        .footer-logo {
          flex-direction: column;
        }
      }


/* Login/Register Containers */
.login-container, .register-container {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 12px #bbb;
}

/* Analytics Quick View */
.analytics-quick-view {
    margin-top: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 0 10px #ccc;
}

.analytics-quick-view ul{
    list-style-type: none;
}

/* Date Range Form */
form#dateRangeForm {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

form#dateRangeForm label {
    margin-right: 5px;
}

form#dateRangeForm input,
form#dateRangeForm button {
    padding: 5px 10px;
}

.chart-container {
    margin-top: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 0 10px #ccc;
}

/* Collapsible Sidebar Icons */
.sidebar.collapsed ul li a {
    font-size: 12px;
    text-align: center;
}

.sidebar.collapsed .toggle-btn {
    text-align: center;
}

/* Animation */
.sidebar {
    transition: all 0.3s ease;
    width: 260px;
}

.main-content {
    margin-left: 260px;
}

.sidebar .kandili-logo{
    display: block;
    width: 130px;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 50px
}

/* Error Display */
.error {
    color: red;
    font-weight: bold;
}

.date-picker {
    margin-bottom: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px #ccc;
    display: flex;
    justify-content: space-between;
}

.date-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.date-picker form div {
    display: flex;
    flex-direction: column;
}

.date-picker button {
    height: 38px;
    margin-top: 15px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    position: relative;
    top: 13px;
    left: 3px;
}

.date-picker button:hover {
    background-color: #45a049;
}

.action-links {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
}

.action-links a {
    text-decoration: none;
    color: rgb(255, 255, 255);
     display: inline-block;
  margin-top: 20px;
  background-color: #4CAF50;
  padding: 10px 20px;
  border-radius: 5px;
}

.chart-container {
    margin-top: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px #ccc;
}

.download-link {
  display: inline-block;
  margin-top: 20px;
  background-color: #4CAF50;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}

.download-link:hover {
  background-color: #45a049;
}

.reports-nav, .management-nav {
  position: relative;
}

.sub-menu {
  display: none;
  background-color: #2e7d32;
  margin-left: 10px;
  border-left: 2px solid #4CAF50;
}

.reports-nav:hover .sub-menu,
.management-nav:hover .sub-menu {
  display: block;
}

.sub-menu a {
  padding-left: 20px;
}

.suspended-user {
    background-color: #f8d7da;
    color: #721c24;
}

.filter-buttons {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.filter-buttons button {
    background-color: #2e7d32;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
}

.filter-buttons button:hover {
    background-color: #45a049;
}

form select {
    margin-bottom: 8px;
}

/* Accessibility Improvements */
:root {
  --primary-color: #15a448;
  --primary-dark: #157347;
  --primary-light: #20c997;
  --text-dark: #212529;
  --text-light: #6c757d;
  --background-light: #f8f9fa;
  --border-color: #dee2e6;
  --focus-color: #0d6efd;
  --error-color: #dc3545;
  --success-color: #198754;
  --warning-color: #ffc107;
}

/* Remove focus outlines globally */
*:focus {
  outline: none !important;
}

*:focus-visible {
  outline: none !important;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* High contrast focus indicators */

/* Skip to main content link for screen readers */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Improved color contrast */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

.btn-secondary {
  background-color: s#ff0000;
  color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #5a6268;
  border-color: #5a6268;
  color: white;
}

/* Form accessibility */
.form-control:focus {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-select:focus {
  border-color: var(--focus-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Table accessibility */
.table th {
  background-color: var(--background-light);
  color: var(--text-dark);
  font-weight: 600;
}

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

/* Alert accessibility */
.alert {
  border-left: 4px solid;
  padding: 1rem;
}

.alert-success {
  background-color: #d1e7dd;
  border-color: var(--success-color);
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: var(--error-color);
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: var(--warning-color);
  color: #856404;
}

.alert-info {
  background-color: #d1f1dc;
  border-color: #009f1b;
  color: #000000;
}

/* Navigation accessibility */
.nav-link:focus {
  background-color: var(--primary-light);
  color: white;
}

.nav-tabs .nav-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Modal accessibility */
.modal-header {
  background-color: var(--primary-color);
  color: white;
}

.modal-header .btn-close {
  filter: invert(1);
}

/* Card accessibility */
.card-header {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

/* Badge accessibility */
.badge {
  font-weight: 600;
  padding: 0.5em 0.75em;
}

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

.badge-warning {
  background-color: var(--warning-color);
  color: var(--text-dark);
}

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

/* Link accessibility */
a {
  color: var(--primary-color);
  text-decoration: none;
}

.header-content .nav-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

/* Button group accessibility */
.btn-group .btn:focus {
  z-index: 3;
}

/* Dropdown accessibility */
.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:focus {
  background-color: var(--primary-color);
  color: white;
}

/* Progress bar accessibility */
.progress {
  background-color: var(--background-light);
  border: 1px solid var(--border-color);
}

.progress-bar {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

/* Pagination accessibility */
.page-link {
  color: var(--primary-color);
  border-color: var(--border-color);
}

.page-link:hover,
.page-link:focus {
  color: var(--primary-dark);
  background-color: var(--background-light);
  border-color: var(--primary-color);
}

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

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --primary-dark: #000000;
    --text-dark: #000000;
    --border-color: #000000;
  }
  
  .btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
  }
  
  .table th {
    background-color: #000000;
    color: #ffffff;
  }
}

/* Large text support */
@media (prefers-contrast: high) {
  body {
    font-size: 18px;
  }
  
  .btn {
    font-size: 18px;
    padding: 12px 24px;
  }
  
  .form-control {
    font-size: 18px;
    padding: 12px;
  }
}

/* Mobile Responsiveness Improvements */
/* Mobile-first approach with progressive enhancement */

/* Base mobile styles (up to 768px) */
@media (max-width: 767.98px) {
  /* Layout adjustments */
  .main-content {
    margin-left: 0;
    padding: 10px;
    min-height: 100vh;
  }
  
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease;
    width: 280px;
  }
  
  .sidebar.show {
    left: 0;
  }
  
  /* Mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1060;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 1.2rem;
  }
  
  .mobile-menu-toggle:focus {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
  }
  
  /* Overlay for mobile menu */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }
  
  .sidebar-overlay.show {
    display: block;
  }
  
  /* Header adjustments */
  .header {
    padding: 10px;
    margin-bottom: 10px;
  }
  
  .right-icons {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
  
  /* Container adjustments */
  .analytics-container,
  .reports-container,
  .notifications-container {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  
  /* Form adjustments */
  .form-section {
    padding: 15px;
  }
  
  .form-section .row {
    margin: 0;
  }
  
  .form-section .col-md-3,
  .form-section .col-md-4,
  .form-section .col-md-6 {
    padding: 0 0 15px 0;
  }
  
  /* Button adjustments */
  .btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 20px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    border-radius: 5px !important;
    margin-bottom: 5px;
  }
  
  /* Table adjustments */
  .table-responsive {
    font-size: 14px;
  }
  
  .table th,
  .table td {
    padding: 8px 4px;
    white-space: nowrap;
  }
  
  /* Card adjustments */
  .card {
    margin-bottom: 15px;
  }
  
  .card-header {
    padding: 15px;
  }
  
  .card-body {
    padding: 15px;
  }
  
  /* Navigation adjustments */
  
  /* Action links adjustments */
  .action-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .download-link,
  .view-logs-link {
    width: 100%;
    text-align: center;
    padding: 15px;
  }
  
  /* Stats grid adjustments */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .stat-card {
    padding: 20px 15px;
  }
  
  .stat-card h4 {
    font-size: 1.8rem;
  }
  
  /* Chart adjustments */
  .chart-container {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .chart-container canvas {
    max-width: 100%;
    height: auto;
  }
  
  /* Modal adjustments */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .modal-footer {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
  
  /* Notification adjustments */
  .notification-item {
    padding: 15px;
    margin-bottom: 10px;
  }
  
  .notification-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .notification-actions {
    flex-direction: column;
    gap: 5px;
  }
  
  .notification-actions .btn {
    width: 100%;
  }
  
  /* Filters adjustments */
  .filters {
    padding: 15px;
  }
  
  .filters .row {
    margin: 0;
  }
  
  .filters .col-md-3 {
    padding: 0 0 15px 0;
  }
  
  /* Pagination adjustments */
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination .page-link {
    padding: 10px 15px;
    font-size: 16px;
  }
  
  /* Search adjustments */
  .input-group {
    flex-direction: column;
  }
  
  .input-group > * {
    margin-bottom: 10px;
    width: 100%;
  }
  
  /* Sidebar navigation adjustments */
  .sidebar ul {
    padding: 10px;
  }
  
  .sidebar li {
    margin-bottom: 5px;
  }
  
  .sidebar a {
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 5px;
  }
  
  /* Submenu adjustments */
  .reports-nav .sub-menu,
  .management-nav .sub-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 20px;
  }
  
  .reports-nav .sub-menu a,
  .management-nav .sub-menu a {
    padding: 8px 15px;
    font-size: 14px;
  }
}

/* Tablet styles (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .main-content {
    margin-left: 250px;
    padding: 20px;
  }
  
  .sidebar {
    width: 250px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-section .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .table-responsive {
    font-size: 14px;
  }
}

/* Desktop styles (1024px and up) */
@media (min-width: 1024px) {
  .main-content {
    margin-left: 280px;
    padding: 30px;
  }
  
  .sidebar {
    width: 280px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}

/* Large desktop styles (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .analytics-container,
  .reports-container,
  .notifications-container {
    padding: 40px;
  }
  
  .chart-container {
    padding: 30px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-control,
  .form-select {
    min-height: 44px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Better touch feedback */
  .btn:active,
  .nav-link:active {
    transform: scale(0.98);
  }
  
  /* Improved scrolling */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better modal handling */
  .modal {
    -webkit-overflow-scrolling: touch;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  .sidebar {
    overflow-y: auto;
  }
  
  .modal-dialog {
    margin: 5px auto;
  }
  
  .header {
    padding: 5px 15px;
  }
  
  .analytics-container,
  .reports-container,
  .notifications-container {
    padding: 15px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .btn,
  .form-control,
  .form-select {
    border-width: 0.5px;
  }
}

/* Print styles */
@media print {
  .sidebar,
  .header,
  .mobile-menu-toggle,
  .btn,
  .action-links {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }
  
  .analytics-container,
  .reports-container,
  .notifications-container {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  
  .table {
    border-collapse: collapse !important;
  }
  
  .table th,
  .table td {
    border: 1px solid #000 !important;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .modal,
  .btn,
  .notification-item {
    transition: none !important;
  }
  
  .btn:active {
    transform: none !important;
  }
}

/* Focus visible improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus-visible,
  .nav-link:focus-visible,
  .form-control:focus-visible,
  .form-select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Override all focus styles to remove blue outlines */
*:focus,
*:focus-visible,
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-group .btn:focus,
.dropdown-item:focus,
.page-link:focus,
.mobile-menu-toggle:focus {
  outline: none !important;
  box-shadow: none !important;
}
