.reports-list-view {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.reports-list-table {
  width: 100%;
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  font-size: 0.98em;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
.reports-list-table th, .reports-list-table td {
  padding: 0.45em 0.75em;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
  font-size: 0.85rem;
}
.reports-list-table th {
  background: var(--gray-100);
  font-weight: 600;
  color: var(--gray-700);
}
.reports-list-table tr:last-child td {
  border-bottom: none;
}
.reports-list-table td .btn-sm {
  margin-right: 0.2em;
  margin-bottom: 0.1em;
  padding: 0.25rem 0.4rem;
  font-size: 0.7rem;
}
/* Universal Compact Table Styles */
.data-table,
.reports-list-table,
.logs-table {
  font-size: 0.95rem;
}

.data-table th,
.data-table td,
.reports-list-table th,
.reports-list-table td,
.logs-table th,
.logs-table td {
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
}

.data-table th,
.reports-list-table th,
.logs-table th {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
}

/* Compact button styling for all tables */
.data-table .btn-sm,
.reports-list-table .btn-sm,
.logs-table .btn-sm {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  margin: 0.1rem;
  border-radius: 4px;
  min-width: auto;
}

/* Admin Dashboard Complete CSS */
:root {
  --primary: #E05E1A;
  --secondary: #1A2942;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F4;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --success: #28A745;
  --danger: #DC3545;
  --warning: #FFC107;
  --info: #17A2B8;
  --dark: #343A40;
  --light: #F8F9FA;
  
  --sidebar-width: 280px;
  --navbar-height: 70px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  --border-radius: 3px;
  --border-radius-lg: 8px;
  
  --transition: all 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

body.admin-access-denied .admin-container {
  filter: blur(2px);
  pointer-events: none;
}

/* Admin Navbar */
.admin-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}
}

/* Reports grid/list toggle */
.btn-toggle-view {
  background: var(--gray-100);
  border: none;
  border-radius: 4px;
  padding: 0.4em 0.7em;
  margin-right: 0.5em;
  font-size: 1.2em;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.15s;
}
.btn-toggle-view:hover {
  background: var(--gray-200);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 100%;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}

.admin-logo span{
  color: var(--primary);
}

.admin-logo span:last-child{
  color: var(--gray-800);
}

.admin-logo i {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-right: -7px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent; /* Make sure background is visible */
}


.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.notification-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.notification-header button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  cursor: pointer;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}

.notification-item:hover {
  background: var(--gray-50);
}

.notification-item.unread {
  background: #FFF8F5;
  border-left: 3px solid var(--primary);
}

.notification-item i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.notification-item p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.notification-item span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Profile Menu */
.admin-profile {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.profile-btn:hover {
  background: var(--gray-100);
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-200);
}

.profile-btn span {
  font-weight: 500;
  color: var(--gray-700);
}

.profile-btn i {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
}

.profile-dropdown a:hover {
  background: var(--gray-50);
}

.profile-dropdown hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0.5rem 0;
}

/* Admin User Dropdown */
.admin-user-dropdown {
  position: relative;
}

.admin-user-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 2px solid var(--secondary) !important; /* Temporary border to see button */
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.admin-user-btn:hover {
  background: var(--gray-100);
}

.admin-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.admin-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.admin-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.875rem;
  line-height: 1.2;
}

.admin-role {
  font-size: 0.75rem;
  color: var(--gray-500);
  line-height: 1.2;
}

.admin-user-btn i.fa-chevron-down {
  color: var(--gray-500);
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.admin-user-dropdown.active .admin-user-btn i.fa-chevron-down {
  transform: rotate(180deg);
}

.user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
  margin-top: 0.5rem;
}

.user-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar-large {
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.user-details {
  max-width: 500px;
}

.user-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.user-detail-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gray-200);
}

.user-details h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.user-id {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin: 0 0 0.5rem 0;
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 0.25rem;
}

.detail-section p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0.5rem 0;
}

.user-menu-items {
  padding: 0.5rem 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}

.menu-item:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

.menu-item i {
  width: 18px;
  color: var(--gray-500);
}

.menu-item.logout {
  color: var(--danger);
  border-top: 1px solid var(--gray-200);
  margin-top: 0.5rem;
}

/* View toggle (shared control used by Tasks) */
.view-toggle { display: inline-flex; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--border-radius); padding: 0.25rem; gap: 0.25rem; }
.view-btn { padding: 0.375rem 0.75rem; border: none; background: transparent; color: var(--gray-600); border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.view-btn:hover { background: var(--gray-200); color: var(--gray-900); }
.view-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

/* Task Manager Styles (aligned with admin design) */
.tasks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.tasks-list { display: flex; flex-direction: column; gap: 0.75rem; }
.task-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--border-radius-lg); padding: 0.75rem; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; }

/* Past due task card styling */
.task-card.past-due {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

.past-due-badge {
    background-color: #dc3545;
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.task-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); }
.task-card.status-in_progress::before { background: var(--warning); }
.task-card.status-done::before { background: var(--success); }
.task-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.task-card-header h4 { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--gray-900); line-height: 1.3; }
.task-card-title { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.task-app-badge { display: inline-flex; align-items: center; padding: 0.15rem 0.5rem; font-size: 0.7rem; font-weight: 600; line-height: 1; border-radius: 999px; background: var(--gray-100); color: var(--primary); }
.task-actions { display: flex; gap: 0.5rem; opacity: 0.7; transition: opacity 0.2s ease; }
.task-card:hover .task-actions { opacity: 1; }
.task-actions button { padding: 0.375rem; border: none; border-radius: 6px; background: var(--gray-100); color: var(--gray-600); cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.task-actions button:hover { background: var(--gray-200); color: var(--gray-900); }
.task-actions button.btn-danger:hover { background: var(--danger); color: var(--white); }
.task-card-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; color: var(--gray-700); line-height: 1.4; }
.task-card-body p { margin: 0; flex: 1; font-size: 0.875rem; }
.task-card-footer { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; color: var(--gray-600); border-top: 1px solid var(--gray-100); padding-top: 0.5rem; }
.task-card-footer span { display: flex; align-items: center; gap: 0.375rem; }
.task-card-footer span i { color: var(--primary); width: 14px; text-align: center; }
.task-status { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.2rem 0.6rem; border-radius: 15px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em; flex-shrink: 0; }
.task-status.open { background: rgba(59, 130, 246, 0.1); color: #1d4ed8; }
.task-status.in_progress { background: rgba(245, 158, 11, 0.1); color: #92400e; }
.task-status.done { background: rgba(34, 197, 94, 0.1); color: #166534; }

/* Attachment display styles for task edit form */
#currentAttachments { 
  padding: 0.75rem; 
  background: var(--gray-50); 
  border-radius: var(--border-radius); 
  border: 1px solid var(--gray-200); 
  margin-top: 0.5rem; 
}
.attachment-item { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  padding: 0.5rem 0; 
  border-bottom: 1px solid var(--gray-200); 
}
.attachment-item:last-child { border-bottom: none; }
.attachment-item i { color: var(--primary); width: 16px; text-align: center; }
.attachment-item span { flex: 1; color: var(--gray-700); }
.attachment-item a { color: var(--primary); text-decoration: none; padding: 0.25rem; border-radius: var(--border-radius-sm); transition: var(--transition); }
.attachment-item a:hover { background: var(--gray-100); }

.tasks-empty { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.tasks-empty i { font-size: 3rem; color: var(--gray-300); margin-bottom: 1rem; }
.tasks-empty h3 { margin: 0 0 0.5rem 0; color: var(--gray-700); }
.tasks-empty p { margin: 0; }

/* Empty state for content control sections */
.no-content-message { 
  text-align: center; 
  padding: 3rem 1rem; 
  color: var(--gray-500);
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  margin: 1rem 0;
}
.no-content-message i { 
  font-size: 3rem; 
  color: var(--gray-300); 
  margin-bottom: 1rem; 
  display: block;
}
.no-content-message h3 { 
  margin: 0 0 0.5rem 0; 
  color: var(--gray-700); 
  font-size: 1.25rem;
}
.no-content-message p { 
  margin: 0; 
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-header .header-content {
    flex-direction: column;
    gap: 1rem;
    margin-right: 1rem;
  }

  .header-stats {
    align-self: stretch;
    justify-content: space-between;
  }

  .stat-pill {
    flex: 1;
    min-width: auto;
  }

  .tasks-toolbar {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .toolbar-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .filter-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .filter-group label {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .filter-group select {
    min-width: 120px;
  }

  .tasks-grid {
    grid-template-columns: 1fr;
  }

  .task-card-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.menu-item.logout:hover {
  background: #FEF2F2;
  color: var(--danger);
}

.menu-item.logout i {
  color: var(--danger);
}

.menu-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0.5rem 0;
}

/* Admin Container */
.admin-container {
  display: flex;
  margin-top: var(--navbar-height);
  min-height: calc(100vh - var(--navbar-height));
}

/* Sidebar */
.admin-sidebar {
  width: var(--sidebar-width);
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  position: fixed;
  left: 0;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
  z-index: 100;
}

.sidebar-nav {
  padding: 1.5rem 0;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-right: 3px solid transparent;
}

.nav-link:hover {
  background: var(--gray-50);
  color: var(--gray-800);
}

.nav-link.active {
  background: #FFF8F5;
  color: var(--primary);
  border-right-color: var(--primary);
}

.nav-link i {
  font-size: 1.125rem;
  width: 20px;
  text-align: center;
}

/* Main Content */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 2rem;
  max-width: calc(100vw - var(--sidebar-width));
}

/* Admin Sections */
.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.section-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.section-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Search Box */
.search-box {
  position: relative;
}

.search-box input {
  padding: 0.5rem 1rem;
  padding-right: 2.5rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  width: 250px;
  transition: border-color 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-box i {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-warning, .btn-danger, .btn-success, .btn-info, .btn-outline {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
}

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

.btn-primary:hover {
  background: #D44E0F;
}

.btn-primary:disabled {
  background: var(--gray-400);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-warning {
  background: var(--warning);
  color: var(--gray-800);
}

.btn-warning:hover {
  background: #E0A800;
}

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

.btn-danger:hover {
  background: #C82333;
}

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

.btn-success:hover {
  background: #218838;
}

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

.btn-info:hover {
  background: #138496;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(224, 94, 26, 0.08);
}

.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--primary) 0%, #F97316 100%);
  color: var(--white);
  font-size: 1.5rem;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--gray-600);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-change {
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-change.positive {
  color: var(--success);
}

.stat-change.negative {
  color: var(--danger);
}

.stat-change.neutral {
  color: var(--gray-500);
}

/* Activity Section */
.activity-section {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.activity-section h3 {
  margin-bottom: 1.5rem;
  color: var(--gray-800);
  font-weight: 600;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.activity-item:hover {
  background: var(--gray-100);
}

.activity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin-bottom: 0.25rem;
  color: var(--gray-800);
}

.activity-time {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.activity-actions {
  display: flex;
  gap: 0.5rem;
}

/* Recent Activity View */
.recent-activity-wrapper {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.activity-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.activity-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
}

.activity-filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

.activity-filter-group select {
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
}

.activity-filter-actions {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
}

.recent-activity-loading,
.recent-activity-error,
.recent-activity-empty {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.recent-activity-loading.active {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

.recent-activity-error {
  border: 1px solid rgba(220, 53, 69, 0.2);
  background: rgba(220, 53, 69, 0.08);
  color: var(--danger);
}

.recent-activity-error.active,
.recent-activity-empty.active {
  display: block;
}

.recent-activity-error a {
  color: inherit;
  text-decoration: underline;
}

.recent-activity-empty {
  border: 1px dashed var(--gray-300);
  color: var(--gray-600);
  text-align: center;
  font-style: italic;
}

.recent-activity-table {
  overflow-x: auto;
  margin-top: 1rem;
}

.recent-activity-table table {
  width: 100%;
  border-collapse: collapse;
}

.recent-activity-table th,
.recent-activity-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.recent-activity-table th {
  background: var(--gray-50);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.recent-activity-table tbody tr:hover {
  background: rgba(224, 94, 26, 0.06);
}

.activity-time-relative {
  display: block;
  font-weight: 600;
  color: var(--gray-800);
}

.activity-time-absolute {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.activity-actor {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.activity-actor-type.badge {
  align-self: flex-start;
  background: rgba(26, 41, 66, 0.08);
  color: var(--secondary);
  font-weight: 600;
}

.activity-actor-name {
  font-weight: 600;
  color: var(--gray-800);
  word-break: break-word;
}

.activity-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(224, 94, 26, 0.15);
  color: var(--primary);
}

.activity-entity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  font-weight: 500;
}

.activity-entity .entity-type {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

.activity-entity .entity-id {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: var(--gray-100);
  padding: 0.15rem 0.45rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  color: var(--gray-700);
}

.activity-meta-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.75rem;
}

.meta-chip .meta-key {
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-chip-more {
  background: rgba(26, 41, 66, 0.15);
  color: var(--secondary);
  font-weight: 600;
}

.activity-actions-cell {
  text-align: right;
  white-space: nowrap;
}

.activity-card-list {
  display: none;
  margin-top: 1.5rem;
  gap: 1rem;
}

.activity-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.activity-card-header,
.activity-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.activity-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-card-footer {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.activity-pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-info {
  font-weight: 600;
  color: var(--gray-700);
}

.pagination-controls {
  display: flex;
  gap: 0.75rem;
}

.activity-detail {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.activity-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.activity-detail-row .label {
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.activity-detail-row .value {
  color: var(--gray-800);
  text-align: right;
  flex: 1;
  word-break: break-word;
}

.activity-detail-section {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.activity-detail-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.activity-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem 1rem;
}

.activity-json {
  background: var(--gray-900);
  color: var(--gray-50);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  max-height: 240px;
  overflow: auto;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.muted {
  color: var(--gray-500);
  font-style: italic;
}

.entity-type-unknown {
  color: var(--gray-400);
}

@media (max-width: 900px) {
  .recent-activity-table {
    display: none;
  }

  .activity-card-list {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .activity-card-list {
    display: none;
  }
}

@media (max-width: 768px) {
  .activity-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-filter-actions {
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Table Styles */
.table-container, .rides-table-container, .logs-table-container {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.data-table, .logs-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* Fixed layout for better column control */
}

.data-table th,
.data-table td,
.logs-table th,
.logs-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  word-wrap: break-word; /* Allow long text to wrap */
  font-size: 0.875rem;
  overflow-wrap: break-word; /* Modern property for word wrapping */
}

/* Employee table specific column widths */
#employees .data-table th:nth-child(1), 
#employees .data-table td:nth-child(1) { /* Name */
  width: 15%;
  min-width: 120px;
}

#employees .data-table th:nth-child(2), 
#employees .data-table td:nth-child(2) { /* Email */
  width: 20%;
  min-width: 150px;
  word-break: break-all; /* Break long emails at any character */
  white-space: normal; /* Allow text to wrap to next line */
  max-width: 0; /* This helps with the table-layout: fixed */
}

/* Optional: Add ellipsis for extremely long emails that still overflow */
#employees .data-table td:nth-child(2) {
  position: relative;
  line-height: 1.4;
  max-height: 4.2em; /* Limit to about 3 lines */
  overflow: hidden;
}

#employees .data-table th:nth-child(3), 
#employees .data-table td:nth-child(3) { /* Department */
  width: 15%;
  min-width: 100px;
}

#employees .data-table th:nth-child(4), 
#employees .data-table td:nth-child(4) { /* Role */
  width: 15%;
  min-width: 100px;
}

#employees .data-table th:nth-child(5), 
#employees .data-table td:nth-child(5) { /* Phone */
  width: 12%;
  min-width: 100px;
}

#employees .data-table th:nth-child(6), 
#employees .data-table td:nth-child(6) { /* Created */
  width: 13%;
  min-width: 100px;
}

#employees .data-table th:nth-child(7), 
#employees .data-table td:nth-child(7) { /* Actions */
  width: 10%;
  min-width: 80px;
}

/* Jobs table specific column widths - 8 columns */
#jobs .data-table {
  table-layout: fixed; /* Use fixed layout for consistent spacing */
}

#jobs .data-table th:nth-child(1), 
#jobs .data-table td:nth-child(1) { /* Title */
  width: 18%;
  min-width: 120px;
}

#jobs .data-table th:nth-child(2), 
#jobs .data-table td:nth-child(2) { /* Department */
  width: 15%;
  min-width: 100px;
}

#jobs .data-table th:nth-child(3), 
#jobs .data-table td:nth-child(3) { /* Type */
  width: 12%;
  min-width: 80px;
}

#jobs .data-table th:nth-child(4), 
#jobs .data-table td:nth-child(4) { /* Location */
  width: 20%;
  min-width: 130px;
}

#jobs .data-table th:nth-child(5), 
#jobs .data-table td:nth-child(5) { /* Status */
  width: 10%;
  min-width: 70px;
}

#jobs .data-table th:nth-child(6), 
#jobs .data-table td:nth-child(6) { /* Applications */
  width: 8%;
  min-width: 60px;
  text-align: center;
}

#jobs .data-table th:nth-child(7), 
#jobs .data-table td:nth-child(7) { /* Posted */
  width: 12%;
  min-width: 80px;
}

#jobs .data-table th:nth-child(8), 
#jobs .data-table td:nth-child(8) { /* Actions */
  width: 8%;
  min-width: 80px;
}

/* Jobs table content styling for compact display */
#jobs .data-table th,
#jobs .data-table td {
  padding: 0.7rem 0.6rem;
  vertical-align: top;
  line-height: 1.3;
}

/* Job title styling */
#jobs .data-table td:nth-child(1) {
  font-weight: 600;
  font-size: 0.9em;
  line-height: 1.2;
}

/* Department and type styling */
#jobs .data-table td:nth-child(2),
#jobs .data-table td:nth-child(3) {
  font-size: 0.85em;
  color: var(--gray-700);
}

/* Location styling with text wrapping */
#jobs .data-table td:nth-child(4) {
  font-size: 0.85em;
  line-height: 1.4;
  word-break: break-word;
  white-space: normal;
  /* Remove the line clamping to allow natural text flow */
  overflow: visible;
  display: block;
  max-height: none;
  padding: 0.7rem 0.5rem;
}

/* Status badge compact sizing */
#jobs .badge {
  font-size: 0.75em;
  padding: 0.2em 0.5em;
  white-space: nowrap;
}

/* Applications count styling */
#jobs .data-table td:nth-child(6) {
  font-weight: 600;
  font-family: monospace;
  font-size: 0.9em;
}

/* Posted date compact styling */
#jobs .data-table td:nth-child(7) {
  font-size: 0.8em;
  white-space: nowrap;
  color: var(--gray-600);
}

/* Action buttons compact layout */
#jobs .data-table .action-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 3px;
  justify-content: center;
  align-items: center;
}

#jobs .data-table .action-buttons .btn-sm {
  padding: 0.25rem 0.35rem !important;
  font-size: 0.7rem !important;
  min-width: auto !important;
  margin: 0 !important;
}

/* Driver verification table specific column widths - 6 columns */
#drivers .data-table {
  table-layout: fixed;
}

#drivers .data-table th:nth-child(1), 
#drivers .data-table td:nth-child(1) { /* Checkbox */
  width: 5%;
  min-width: 40px;
}

#drivers .data-table th:nth-child(2), 
#drivers .data-table td:nth-child(2) { /* Name */
  width: 25%;
  min-width: 150px;
}

#drivers .data-table th:nth-child(3), 
#drivers .data-table td:nth-child(3) { /* Email */
  width: 30%;
  min-width: 180px;
  word-break: break-all;
  white-space: normal;
}

#drivers .data-table th:nth-child(4), 
#drivers .data-table td:nth-child(4) { /* Vehicle */
  width: 20%;
  min-width: 120px;
}

#drivers .data-table th:nth-child(5), 
#drivers .data-table td:nth-child(5) { /* Status */
  width: 12%;
  min-width: 80px;
}

#drivers .data-table th:nth-child(6), 
#drivers .data-table td:nth-child(6) { /* Actions */
  width: 15%;
  min-width: 120px;
  text-align: center !important;
  padding: 0.45rem 0.75rem;
  vertical-align: middle;
}

/* User management table specific column widths - 8 columns */
#users .data-table {
  table-layout: fixed;
}

#users .data-table th:nth-child(1), 
#users .data-table td:nth-child(1) { /* Checkbox */
  width: 5%;
  min-width: 40px;
}

#users .data-table th:nth-child(2), 
#users .data-table td:nth-child(2) { /* User */
  width: 18%;
  min-width: 130px;
}

#users .data-table th:nth-child(3), 
#users .data-table td:nth-child(3) { /* Email */
  width: 22%;
  min-width: 160px;
  word-break: break-all;
  white-space: normal;
}

#users .data-table th:nth-child(4), 
#users .data-table td:nth-child(4) { /* School */
  width: 15%;
  min-width: 100px;
}

#users .data-table th:nth-child(5), 
#users .data-table td:nth-child(5) { /* Type */
  width: 10%;
  min-width: 70px;
}

#users .data-table th:nth-child(6), 
#users .data-table td:nth-child(6) { /* Status */
  width: 10%;
  min-width: 70px;
}

#users .data-table th:nth-child(7), 
#users .data-table td:nth-child(7) { /* Joined */
  width: 10%;
  min-width: 80px;
}

#users .data-table th:nth-child(8), 
#users .data-table td:nth-child(8) { /* Actions */
  width: 10%;
  min-width: 100px;
}

/* Rides table specific column widths - 8 columns */
#rides .data-table {
  table-layout: fixed;
}

#rides .data-table th:nth-child(1), 
#rides .data-table td:nth-child(1) { /* Ride ID */
  width: 8%;
  min-width: 70px;
  font-family: monospace;
  font-size: 0.9em;
}

#rides .data-table th:nth-child(2), 
#rides .data-table td:nth-child(2) { /* Driver */
  width: 15%;
  min-width: 110px;
}

#rides .data-table th:nth-child(3), 
#rides .data-table td:nth-child(3) { /* Passengers */
  width: 15%;
  min-width: 110px;
}

#rides .data-table th:nth-child(4), 
#rides .data-table td:nth-child(4) { /* Route */
  width: 25%;
  min-width: 180px;
  line-height: 1.3;
  max-height: 3.9em; /* Limit to about 3 lines */
  overflow: hidden;
  font-size: 0.9em;
}

#rides .data-table th:nth-child(5), 
#rides .data-table td:nth-child(5) { /* Date/Time */
  width: 12%;
  min-width: 90px;
  font-size: 0.9em;
}

#rides .data-table th:nth-child(6), 
#rides .data-table td:nth-child(6) { /* Status */
  width: 10%;
  min-width: 80px;
}

#rides .data-table th:nth-child(7), 
#rides .data-table td:nth-child(7) { /* Amount */
  width: 8%;
  min-width: 60px;
  text-align: right;
  font-family: monospace;
  font-weight: 600;
}

#rides .data-table th:nth-child(8), 
#rides .data-table td:nth-child(8) { /* Actions */
  width: 7%;
  min-width: 60px;
}

/* Rides table content styling */
#rides .user-compact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rides .user-compact strong {
  font-size: 0.9em;
  line-height: 1.2;
}

#rides .user-compact span {
  font-size: 0.8em;
  color: var(--gray-600);
  line-height: 1.1;
}

#rides .passengers-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#rides .passengers-list span {
  font-size: 0.85em;
  line-height: 1.2;
}

/* Route styling for better readability */
#rides .data-table td:nth-child(4) {
  word-break: break-word;
  white-space: normal;
  font-size: 0.85em;
  line-height: 1.3;
  padding: 0.8rem;
}

/* Compact date/time display */
#rides .data-table td:nth-child(5) {
  white-space: nowrap;
  font-size: 0.85em;
}

/* Status badge adjustments */
#rides .badge {
  font-size: 0.75em;
  padding: 0.25em 0.5em;
  white-space: nowrap;
}

/* Action buttons compact layout */
#rides .action-buttons {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: center;
}

#rides .action-buttons .btn-sm {
  padding: 0.2rem 0.3rem !important;
  font-size: 0.7rem !important;
  min-width: auto !important;
  border-radius: 3px !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
}

/* Reduce overall row height */
#rides .data-table th,
#rides .data-table td {
  padding: 0.4rem 0.6rem;
  vertical-align: top;
  font-size: 0.8rem;
}

/* Admin Users table specific column widths - 6 columns */
#admin-users .data-table {
  table-layout: fixed;
}

#admin-users .data-table th:nth-child(1), 
#admin-users .data-table td:nth-child(1) { /* Name */
  width: 20%;
  min-width: 150px;
}

#admin-users .data-table th:nth-child(2), 
#admin-users .data-table td:nth-child(2) { /* Email */
  width: 30%;
  min-width: 200px;
  word-break: break-all;
  white-space: normal;
}

#admin-users .data-table th:nth-child(3), 
#admin-users .data-table td:nth-child(3) { /* Role */
  width: 15%;
  min-width: 100px;
}

#admin-users .data-table th:nth-child(4), 
#admin-users .data-table td:nth-child(4) { /* Created */
  width: 15%;
  min-width: 110px;
}

#admin-users .data-table th:nth-child(5), 
#admin-users .data-table td:nth-child(5) { /* Status */
  width: 10%;
  min-width: 80px;
}

#admin-users .data-table th:nth-child(6), 
#admin-users .data-table td:nth-child(6) { /* Actions */
  width: 10%;
  min-width: 80px;
}

/* User Management action buttons */
#users .action-buttons {
  display: flex !important;
  gap: 0.375rem !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

#users .action-buttons .btn-sm {
  margin: 0 !important;
  padding: 0.25rem 0.4rem !important;
  font-size: 0.7rem !important;
  min-width: 24px !important;
  white-space: nowrap !important;
  border-radius: 3px !important;
}

/* Driver Verification action buttons */
#drivers .action-buttons {
  display: flex !important;
  gap: 0.375rem !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  margin: 0 auto !important;
  width: 100% !important;
}

#drivers .action-buttons .btn-sm {
  margin: 0 !important;
  padding: 0.25rem 0.4rem !important;
  font-size: 0.7rem !important;
  min-width: 24px !important;
  white-space: nowrap !important;
  border-radius: 3px !important;
  line-height: 1.2 !important;
  vertical-align: middle !important;
}

.data-table th,
.logs-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.75rem;
}

.data-table tbody tr:hover,
.logs-table tbody tr:hover {
  background: var(--gray-50);
}

/* Responsive table styles for smaller screens */
@media (max-width: 1024px) {
  #employees .data-table th:nth-child(2), 
  #employees .data-table td:nth-child(2) { /* Email - give more space on medium screens */
    width: 25%;
    min-width: 180px;
  }
  
  #employees .data-table th:nth-child(5), 
  #employees .data-table td:nth-child(5) { /* Phone - reduce space */
    width: 10%;
    min-width: 90px;
  }

  /* Jobs table responsive adjustments */
  #jobs .data-table th:nth-child(4), 
  #jobs .data-table td:nth-child(4) { /* Location - reduce on medium screens */
    width: 14%;
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .data-table {
    font-size: 0.875rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .data-table th:nth-child(2), 
  .data-table td:nth-child(2) { /* Email - maximum space on mobile */
    width: 30%;
    min-width: 150px;
    font-size: 0.8rem; /* Slightly smaller text for long emails */
  }
  
  .data-table th:nth-child(5), 
  .data-table td:nth-child(5) { /* Phone - hide on very small screens */
    display: none;
  }
}

@media (max-width: 600px) {
  .data-table th:nth-child(6), 
  .data-table td:nth-child(6) { /* Created date - hide on very small screens */
    display: none;
  }
}

.logs-table {
  font-size: 0.875rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info div {
  display: flex;
  flex-direction: column;
}

.user-info strong {
  font-weight: 600;
  color: var(--gray-800);
}

.user-info span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.user-compact {
  display: flex;
  flex-direction: column;
}

.user-compact strong {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.875rem;
}

.user-compact span {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.passengers-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.passengers-list span {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: #E0F2FE;
  color: #0284C7;
}

.badge-success {
  background: #DCFCE7;
  color: #15803D;
}

.badge-warning {
  background: #FEF3C7;
  color: #D97706;
}

.badge-danger {
  background: #FEE2E2;
  color: #DC2626;
}

.badge-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.badge-info {
  background: #E0F2FE;
  color: #0284C7;
}

/* Log Types */
.log-type {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.log-type.login {
  background: #DCFCE7;
  color: #15803D;
}

.log-type.user {
  background: #E0F2FE;
  color: #0284C7;
}

.log-type.system {
  background: var(--gray-200);
  color: var(--gray-700);
}

.log-type.error {
  background: #FEE2E2;
  color: #DC2626;
}

/* Profile Settings Styles */
.profile-settings-container {
  max-width: 800px;
  margin: 0 auto;
}

.profile-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.profile-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 2rem;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.avatar-container {
  position: relative;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.avatar-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
}

.avatar-change-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
}

.profile-info h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.profile-info p {
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.9;
}

.profile-form {
  padding: 2rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
  font-size: 1.125rem;
}

.form-section h4 i {
  color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.notification-settings,
.preference-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.notification-info h5 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
  font-weight: 600;
}

.notification-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.preference-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.preference-item label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.preference-item select {
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.profile-actions {
  padding: 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Password Form Styles */
.password-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.password-form-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.form-header {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
}

.form-header i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  opacity: 0.9;
  margin: 0;
}

.password-form {
  padding: 2rem;
}

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

.password-input input {
  flex: 1;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem;
}

.password-requirements {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.password-requirements p {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  color: var(--gray-700);
}

.password-requirements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.password-requirements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.password-requirements li i {
  width: 16px;
  color: var(--danger);
}

.password-requirements li.valid i {
  color: var(--success);
}

.password-feedback {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

.password-feedback.match {
  color: var(--success);
}

.password-feedback.no-match {
  color: var(--danger);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.security-tips {
  padding: 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.security-tips h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.security-tips h4 i {
  color: var(--warning);
}

.security-tips ul {
  margin: 0;
  padding-left: 1.5rem;
}

.security-tips li {
  margin-bottom: 0.5rem;
  color: var(--gray-600);
}

/* Settings Styles */
.settings-container {
  max-width: 1000px;
  margin: 0 auto;
}

.settings-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.settings-tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-tab-btn:hover {
  color: var(--gray-800);
  background: var(--gray-50);
}

.settings-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.settings-content {
  min-height: 500px;
}

.settings-tab-pane {
  display: none;
}

.settings-tab-pane.active {
  display: block;
}

.settings-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.settings-card h3 {
  margin-bottom: 1.5rem;
  color: var(--gray-800);
  font-size: 1.25rem;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-item {
  display: flex;
  flex-direction: column;
}

.pricing-item label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.pricing-item input {
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

.pricing-item small {
  margin-top: 0.25rem;
  color: var(--gray-500);
  font-size: 0.75rem;
}

.email-templates {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.template-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.template-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
}

.template-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.template-actions {
  display: flex;
  gap: 0.5rem;
}

.smtp-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.security-toggles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.toggle-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
}

.toggle-info p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.timeout-setting select {
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
}

.maintenance-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.maintenance-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
}

.maintenance-info h4 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-800);
}

.maintenance-info p {
  margin: 0 0 0.5rem 0;
  color: var(--gray-600);
}

.maintenance-info span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.maintenance-buttons {
  display: flex;
  gap: 0.5rem;
}

.maintenance-mode {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.maintenance-message {
  display: flex;
  flex-direction: column;
}

.maintenance-message label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.maintenance-message textarea {
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  resize: vertical;
  margin-bottom: 0.5rem;
}

.maintenance-message small {
  color: var(--gray-600);
  font-size: 0.75rem;
}

/* Driver Verification Styles */
.driver-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--gray-800);
  background: var(--gray-50);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1rem;
}

.application-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.application-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.applicant-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.applicant-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.applicant-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
}

.applicant-info p {
  margin: 0 0 0.25rem 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.application-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.application-details {
  margin-bottom: 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.detail-row span:first-child {
  color: var(--gray-600);
  font-weight: 500;
}

.detail-row span:last-child {
  color: var(--gray-800);
}

.application-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.documents-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.document-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--border-radius);
  font-size: 1.25rem;
}

.document-info {
  flex: 1;
}

.document-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
}

.document-info p {
  margin: 0 0 0.25rem 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.document-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.document-status.pending {
  background: #FEF3C7;
  color: #D97706;
}

.document-actions {
  display: flex;
  gap: 0.5rem;
}

.verified-drivers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.driver-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.driver-card.verified {
  border-left: 4px solid var(--success);
}

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

.driver-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.driver-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
}

.driver-info p {
  margin: 0 0 0.25rem 0;
  color: var(--gray-600);
  font-size: 0.875rem;
}

.verification-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.driver-stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat .stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat .stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Control Styles */
.content-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2rem;
}

.content-tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.content-tab-btn:hover {
  color: var(--gray-800);
  background: var(--gray-50);
}

.content-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.content-tab-pane {
  display: none;
}

.content-tab-pane.active {
  display: block;
}

.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.announcement-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.announcement-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.announcement-header h4 {
  margin: 0;
  color: var(--gray-800);
}

.announcement-priority {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.announcement-priority.high {
  background: #FEE2E2;
  color: #DC2626;
}

.announcement-priority.normal {
  background: var(--gray-200);
  color: var(--gray-700);
}

.announcement-priority.urgent {
  background: #FEF3C7;
  color: #D97706;
}

.announcement-target {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.announcement-target.drivers {
  background: #EFF6FF;
  color: #2563EB;
}

.announcement-target.riders {
  background: #F0FDF4;
  color: #16A34A;
}

.announcement-target.employees {
  background: #FEF7FF;
  color: #9333EA;
}

.announcement-target.riders-drivers {
  background: #FFF7ED;
  color: #EA580C;
}

.announcement-target.all {
  background: #F3F4F6;
  color: var(--gray-700);
}

.announcement-meta {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.announcement-actions,
.faq-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.faq-question h4 {
  margin: 0;
  color: var(--gray-800);
}

.faq-category {
  padding: 0.25rem 0.75rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Analytics Styles */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.analytics-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.analytics-card h3 {
  margin-bottom: 1.5rem;
  color: var(--gray-800);
  font-size: 1.25rem;
}

.growth-stats,
.school-stats,
.revenue-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.growth-item,
.school-item,
.revenue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.growth-label,
.school-name,
.revenue-label {
  font-weight: 500;
  color: var(--gray-700);
}

.growth-value,
.school-percentage,
.revenue-value {
  font-weight: 600;
  color: var(--primary);
}

.progress-bar,
.school-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-fill,
.school-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #F97316 100%);
  transition: width 0.3s ease;
}

/* Reports Styles */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.report-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1rem; /* reduced from 1.5rem to make cards shorter */
  box-shadow: var(--shadow-sm);
}

.report-card.high-priority {
  border-left: 4px solid var(--danger);
}

.report-card.medium-priority {
  border-left: 4px solid var(--warning);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem; /* compact header spacing */
}

.report-info h4 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-800);
}

.report-info p {
  margin: 0 0 0.15rem 0; /* tighter subtext spacing */
  color: var(--gray-600);
  font-size: 0.875rem;
}

.report-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.priority-badge.high {
  background: #FEE2E2;
  color: #DC2626;
}

.priority-badge.medium {
  background: #FEF3C7;
  color: #D97706;
}

.priority-badge.urgent {
  background: #FEE2E2;
  color: #DC2626;
}

.priority-badge.normal {
  background: var(--gray-200);
  color: var(--gray-700);
}

.report-content {
  margin-bottom: 0.75rem; /* reduce content bottom spacing */
  color: var(--gray-700);
  line-height: 1.6;
}

.report-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem; /* reduce top spacing before buttons */
}



/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Fix for dropdown selects in modals */
.modal-body select {
  position: relative;
  z-index: 2001;
  /* Ensure dropdown has space to display */
  margin-bottom: 1rem;
}

/* Ensure dropdown options appear above modal */
.modal-overlay select option {
  position: relative;
  z-index: 2002;
}

/* Add specific styling for modal form selects */
.modal-body .form-group select {
  background-color: white;
  position: relative;
  z-index: 2001;
}

/* Modal form controls override */
.modal-body .form-control {
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  color: var(--gray-800);
  background-color: var(--white);
}

.modal-body select.form-control {
  height: auto;
  min-height: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

/* Ride Details Modal Styles */
.ride-details-modal {
  max-width: 100%;
}

.ride-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-100);
}

.ride-id {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ride-id h4 {
  margin: 0;
  color: var(--primary-600);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ride-id h4 i {
  color: var(--primary-500);
}

.ride-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.detail-section {
  background: var(--gray-50);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
}

.detail-section h5 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.detail-section h5 i {
  color: var(--primary-500);
  width: 16px;
  text-align: center;
}

.detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item .label {
  font-weight: 600;
  color: var(--gray-600);
  min-width: 100px;
  flex-shrink: 0;
}

.detail-item .value {
  color: var(--gray-800);
  text-align: right;
  flex: 1;
}

.price-highlight {
  font-weight: 700;
  color: var(--success-600);
  font-family: monospace;
}

/* Route Display Styles */
.route-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-200);
  margin-bottom: 0.5rem;
}

.route-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.pickup-icon {
  color: var(--success-500);
}

.destination-icon {
  color: var(--danger-500);
}

.route-arrow {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.route-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Passengers List Styles */
.passengers-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.passenger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-200);
}

.passenger-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.passenger-email {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.passenger-status {
  display: flex;
  align-items: center;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  margin: 1rem 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-state p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1rem;
  font-style: italic;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-200);
  margin: 2rem 0;
}

.loading-state .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

/* Notes Content */
.notes-content {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-200);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Contact Participants Modal */
.contact-participants {
  max-width: 100%;
}

.participants-info {
  background: var(--primary-50);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--primary-200);
}

.participants-info p {
  margin: 0 0 0.5rem 0;
}

.participants-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.participants-list li {
  padding: 0.25rem 0;
  color: var(--gray-700);
}

/* Responsive Design for Ride Details */
@media (max-width: 768px) {
  .ride-details-grid {
    grid-template-columns: 1fr;
  }
  
  .route-display {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  
  .route-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .detail-item {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  
  .detail-item .value {
    text-align: left;
    margin-top: 0.25rem;
  }
}

/* Debug styles for navbar visibility */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent; /* Make sure background is visible */
}

.admin-user-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 2px solid var(--secondary) !important; /* Temporary border to see button */
  padding: 0.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-main {
    margin-left: 0;
    max-width: 100vw;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .admin-main {
    padding: 1rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .header-actions {
    flex-wrap: wrap;
    width: 100%;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
  }
  
  /* Keep action buttons horizontal except for specific contexts */
  .report-actions .action-buttons,
  .message-actions .action-buttons {
    flex-direction: column;
  }
  
  .smtp-settings {
    grid-template-columns: 1fr;
  }
  
  .driver-stats {
    justify-content: center;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.mb-3 {
  margin-bottom: 1rem;
}

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

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Auth (Login) Page */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-50);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1.5rem 0.5rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--gray-800);
  font-size: 1.4rem;
}
.auth-brand i { color: var(--primary); }
.auth-brand .brand-sub { color: var(--secondary); font-weight: 600; }

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}

.auth-card-header h1 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  color: var(--gray-900);
}
.auth-card-header .muted { color: var(--gray-500); margin: 0 0 1rem 0; }

.auth-form .form-group { margin-bottom: 1rem; }
.auth-form label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
}
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: var(--white);
}
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,147,255,0.15); }

.btn-block { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.form-error { color: #DC2626; margin-top: 0.75rem; min-height: 1.25rem; }
.auth-footer { margin-top: 0.75rem; text-align: center; }

/* Work Logs Section Styles */
.work-log-notes {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

.work-log-details {
  line-height: 1.6;
}

.work-log-details .detail-row {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.work-log-details .detail-row:last-child {
  border-bottom: none;
}

.work-log-details .work-notes {
  background: var(--gray-50);
  padding: 1rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.work-log-details .attachments-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.work-log-details .attachments-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gray-800);
}

.work-log-details .attachments-header i {
  color: var(--primary);
}

.work-log-details .attachments-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.attachment-chip {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--border-radius);
  border-width: 1px;
}

.attachment-chip span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-chip .attachment-action-icon {
  color: var(--primary);
  font-size: 0.85rem;
}

.work-log-details h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
  font-size: 1.1rem;
}

.work-log-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-log-details li {
  background: var(--gray-50);
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--info);
}

.work-log-details li:last-child {
  margin-bottom: 0;
}

/* Work logs section full width styles */
#work-logs {
  width: 100%;
  max-width: 100%;
}

#work-logs .data-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 0;
}

#work-logs .data-table table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

/* Work logs table specific styles */
#work-logs .data-table th:nth-child(1) { width: 100px; } /* Date */
#work-logs .data-table th:nth-child(2) { width: 180px; } /* Employee */
#work-logs .data-table th:nth-child(3) { width: 70px; }  /* Hours */
#work-logs .data-table th:nth-child(4) { width: auto; }  /* Notes - takes remaining space */
#work-logs .data-table th:nth-child(5) { width: 130px; } /* Status */
#work-logs .data-table th:nth-child(6) { width: 140px; } /* Actions */

/* Ensure work notes column uses available space */
#work-logs .data-table td:nth-child(4) {
  word-wrap: break-word;
  word-break: break-word;
  max-width: 0;
}

#work-logs .action-buttons {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

#work-logs .action-buttons .btn-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
}

/* Badge styles for work log status */
.badge-warning {
  background-color: #fbbf24;
  color: #92400e;
}

.badge-success {
  background-color: #34d399;
  color: #065f46;
}

/* Responsive work logs table */
@media (max-width: 768px) {
  #work-logs .data-table th:nth-child(4),
  #work-logs .data-table td:nth-child(4) {
    display: none;
  }
  
  #work-logs .action-buttons {
    flex-direction: column;
    gap: 0.125rem;
  }
  
  #work-logs .action-buttons .btn-sm {
    font-size: 0.625rem;
    padding: 0.25rem 0.375rem;
  }
}

/* Employee Management Styles */
#employees {
  width: 100%;
  max-width: 100%;
}

#employees .data-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  padding: 0;
}

#employees .data-table table {
  width: 100%;
  min-width: 100%;
  table-layout: fixed;
}

/* Employee table column widths */
#employees .data-table th:nth-child(1) { width: 180px; } /* Name */
#employees .data-table th:nth-child(2) { width: 200px; } /* Email */
#employees .data-table th:nth-child(3) { width: 140px; } /* Department */
#employees .data-table th:nth-child(4) { width: 130px; } /* Role */
#employees .data-table th:nth-child(5) { width: 130px; } /* Phone */
#employees .data-table th:nth-child(6) { width: 120px; } /* Created */
#employees .data-table th:nth-child(7) { width: 140px; } /* Actions */

#employees .action-buttons {
  display: flex !important; /* Force flex display with high priority */
  flex-direction: row !important; /* Force horizontal direction */
  gap: 0.25rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

#employees .action-buttons .btn-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  flex-shrink: 0; /* Prevent buttons from shrinking */
  display: inline-flex; /* Force inline-flex display */
  align-items: center;
  justify-content: center;
  margin: 0; /* Remove any potential margins */
  width: auto; /* Ensure width is auto */
}

/* Ensure the Actions column doesn't compress the buttons */
#employees .data-table th:nth-child(7), 
#employees .data-table td:nth-child(7) { 
  width: 10%;
  min-width: 120px; /* Increased from 80px to give more space */
  text-align: center;
}

/* Employee form styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 0.875rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--white);
}

/* Specific styling for select elements */
select.form-control {
  height: auto;
  min-height: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(224, 94, 26, 0.25);
}

.form-control:invalid {
  border-color: var(--danger);
}

/* Employee status badges */
.badge {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.375rem;
}

.badge-success {
  color: #155724;
  background-color: #d4edda;
}

.badge-warning {
  color: #856404;
  background-color: #fff3cd;
}

.badge-info {
  color: #0c5460;
  background-color: #d1ecf1;
}

/* Employee details modal */
.work-log-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.work-log-details .detail-row:last-child {
  border-bottom: none;
}

.work-log-details .detail-row strong {
  min-width: 120px;
  color: var(--gray-700);
}

/* Employee search input */
#employeeFilterSearch {
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 0.875rem;
}

#employeeFilterSearch:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(224, 94, 26, 0.25);
}

/* Responsive employee management */
@media (max-width: 768px) {
  #employees .data-table th:nth-child(5),
  #employees .data-table td:nth-child(5),
  #employees .data-table th:nth-child(6),
  #employees .data-table td:nth-child(6) {
    display: none;
  }
  
  #employees .action-buttons {
    gap: 0.125rem;
    justify-content: center;
  }
  
  #employees .action-buttons .btn-sm {
    font-size: 0.625rem;
    padding: 0.25rem 0.375rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Comment Modal Styles */
#commentModal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

#commentModal .modal-content {
  background-color: var(--white);
  margin: 10% auto;
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  animation: fadeInScale 0.3s ease-out;
}

#commentModal .modal-header {
  padding: 1.5rem 1.5rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

#commentModal .modal-header h3 {
  margin: 0;
  color: var(--gray-800);
  font-size: 1.25rem;
  font-weight: 600;
}

#commentModal .close {
  color: var(--gray-400);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

#commentModal .close:hover {
  color: var(--gray-600);
}

#commentModal .modal-body {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

#commentModal .modal-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

#commentModal .form-group {
  margin-bottom: 0;
}

#commentModal .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

#commentModal textarea.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#commentModal textarea.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(224, 94, 26, 0.25);
}

/* Work Log Comments Display */
.work-log-details .comments-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.work-log-details .comments-section h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1rem;
  font-weight: 600;
}

.work-log-details .comments-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-log-details .comment-item {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid var(--primary);
}

.work-log-details .comment-item:last-child {
  margin-bottom: 0;
}

.work-log-details .comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.work-log-details .comment-author {
  font-weight: 600;
  color: var(--primary);
}

.work-log-details .comment-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.work-log-details .comment-text {
  color: var(--gray-700);
  line-height: 1.5;
  margin: 0;
}

.work-log-details .no-comments {
  text-align: center;
  color: var(--gray-500);
  font-style: italic;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
  border: 2px dashed var(--gray-300);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =====================================
   PROMOTIONS MANAGEMENT STYLES
   ===================================== */

/* Promotions Section Layout */
#promotions.admin-section {
  padding: 1.5rem;
  background: var(--gray-50);
  min-height: calc(100vh - 80px);
}

#promotions .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0;
  background: transparent;
  border: none;
}

#promotions .section-header h1 {
  margin: 0;
  color: var(--gray-900);
  font-size: 1.75rem;
  font-weight: 600;
}

#promotions .header-actions {
  display: flex;
  gap: 0.75rem;
}

#promotions .stats-grid {
  margin-bottom: 2rem;
}

.promotion-info {
  max-width: 250px;
}

.promotion-description {
  font-size: 0.85em;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.type-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.type-badge.type-discount {
  background-color: #e3f2fd;
  color: #1976d2;
}

.type-badge.type-cashback {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.type-badge.type-free_rides {
  background-color: #fff3e0;
  color: #f57c00;
}

.type-badge.type-bonus {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.type-badge.type-referral {
  background-color: #fce4ec;
  color: #c2185b;
}

.badge-star {
  background-color: #fff8e1;
  color: #f9a825;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.filters-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-200);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--gray-700);
}

.filter-group select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.modal.large .modal-content {
  max-width: 800px;
  width: 90%;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.form-section h3 {
  margin: 0 0 1rem 0;
  color: var(--gray-800);
  font-size: 1.1rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .form-group {
  margin-bottom: 0;
}

.checkbox-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
}

.input-group {
  display: flex;
  align-items: center;
}

.input-prefix {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-right: none;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-weight: 500;
  color: var(--gray-700);
}

.input-group input {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  flex: 1;
}

.category-info, .type-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-info {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}

.category-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.category-description, .type-description {
  font-size: 0.85em;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.categories-header, .types-header {
  margin-bottom: 1.5rem;
}

.categories-list, .types-list {
  margin-top: 1rem;
}

.form-help {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
  display: block;
}

.platforms-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.platform-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0.25rem 0;
}

.platform-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

.platform-checkbox .checkmark {
  display: none;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  display: none;
  transition: opacity 0.3s ease;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.notification.success {
  background-color: #10b981;
}

.notification.error {
  background-color: #ef4444;
}

.notification.info {
  background-color: #3b82f6;
}

.notification.warning {
  background-color: #f59e0b;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.stats-modal-content {
  padding: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--border-radius);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.daily-usage-section {
  margin-top: 2rem;
}

.daily-usage-section h4 {
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.usage-chart {
  max-height: 200px;
  overflow-y: auto;
}

.usage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.usage-date {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.usage-count {
  font-weight: 500;
  color: var(--gray-800);
}

/* Promotions table styling */
#promotions .table-container {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

#promotions .data-table {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  width: 100%;
}

/* Promotions content area */
#promotions .loading-state,
#promotions .empty-state,
#promotions .table-container {
  width: 100%;
  box-sizing: border-box;
}

/* Ensure proper spacing and layout */
#promotions .admin-section > * {
  width: 100%;
}

/* Action buttons styling */
.action-buttons {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.action-buttons .btn-sm {
  padding: 0.375rem 0.5rem;
  font-size: 0.75rem;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Badge improvements */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-align: center;
  white-space: nowrap;
}

/* Responsive adjustments for promotions */
@media (max-width: 768px) {
  .filters-row {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .checkbox-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .modal.large .modal-content {
    width: 95%;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.125rem;
  }
  
  .action-buttons .btn-sm {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================
   LEGAL DOCUMENTS MANAGEMENT STYLES
   ===================================== */

.legal-documents-container {
  max-width: 1200px;
  margin: 0 auto;
}

.legal-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.legal-tabs .tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-tabs .tab-btn:hover {
  color: var(--primary);
  background-color: var(--gray-50);
}

.legal-tabs .tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: var(--gray-50);
}

.legal-tab-content {
  display: none;
}

.legal-tab-content.active {
  display: block;
}

.document-editor {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.editor-header h3 {
  margin: 0;
  color: var(--gray-900);
  font-weight: 600;
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.last-updated {
  color: var(--gray-600);
  font-size: 0.875rem;
  white-space: nowrap;
}

.editor-content {
  padding: 2rem;
}

.legal-editor {
  min-height: 400px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 1rem;
  background-color: var(--gray-50);
}

.legal-editor:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: white;
}

.notification-settings {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.notification-settings h4 {
  margin: 0 0 1rem 0;
  color: var(--gray-900);
  font-size: 1.1rem;
  font-weight: 600;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.5rem;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.checkbox-group label:hover {
  background-color: var(--gray-100);
}

.checkbox-group input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
}

.document-history {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.history-tabs {
  display: flex;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.history-tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.history-tab-btn:hover {
  background-color: var(--gray-100);
  color: var(--gray-800);
}

.history-tab-btn.active {
  background-color: white;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}

.history-content {
  padding: 1.5rem;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
}

.history-item {
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.history-item:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.history-version {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.history-date {
  color: var(--gray-600);
  font-size: 0.875rem;
}

.history-changes {
  color: var(--gray-700);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.history-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.history-meta small {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.document-preview {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  line-height: 1.8;
  font-family: Georgia, serif;
  color: var(--gray-800);
}

.document-preview .document-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.document-preview h1 {
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
}

.document-preview .document-meta {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

.document-preview .document-body h1,
.document-preview .document-body h2,
.document-preview .document-body h3 {
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.document-preview .document-body h1 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.document-preview .document-body h2 {
  font-size: 1.5rem;
}

.document-preview .document-body h3 {
  font-size: 1.25rem;
}

.document-preview .document-body p {
  margin-bottom: 1rem;
  text-align: justify;
}

.document-preview .document-body li {
  margin-bottom: 0.5rem;
}

.large-modal .modal-content {
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  width: 1000px;
}

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  margin: 0.5rem 0;
  color: var(--gray-700);
}

.empty-state p {
  margin: 0;
  font-size: 0.9rem;
}

/* Legal Documents Responsive Design */
@media (max-width: 768px) {
  .legal-tabs {
    flex-direction: column;
    gap: 0;
  }
  
  .legal-tabs .tab-btn {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--gray-200);
  }
  
  .legal-tabs .tab-btn.active {
    border-bottom: 1px solid var(--primary);
  }
  
  .editor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .editor-actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }
  
  .editor-content {
    padding: 1rem;
  }
  
  .legal-editor {
    font-size: 0.8rem;
    min-height: 300px;
  }
  
  .history-tabs {
    flex-direction: column;
  }
  
  .history-tab-btn {
    padding: 0.75rem 1rem;
    text-align: left;
  }
  
  .history-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  
  .large-modal .modal-content {
    width: 95vw;
    max-width: none;
    margin: 0.5rem;
  }
  
  .document-preview {
    padding: 1rem;
  }
  
  .document-preview h1 {
    font-size: 1.5rem;
  }
}

/* =====================================
   SECTION-BASED EDITING STYLES
   ===================================== */

.section-editor {
  margin-top: 1.5rem;
}

.section-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.section-controls h4 {
  margin: 0;
  color: var(--gray-900);
}

.editor-modes {
  display: flex;
  gap: 0.5rem;
}

.editor-modes .btn-outline {
  padding: 0.5rem 1rem;
  border: 2px solid var(--gray-300);
  background: white;
  color: var(--gray-700);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.editor-modes .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.editor-modes .btn-outline.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.section-based-editor {
  display: block;
}

.full-editor {
  display: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 8px;
}

.section-header h5 {
  margin: 0;
  color: var(--gray-900);
}

.sections-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.document-section {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.document-section:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.document-section.editing {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
}

.section-title-bar:hover {
  background: var(--gray-100);
}

.section-title-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  min-width: 2rem;
  text-align: center;
}

.section-title {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 1rem;
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.section-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.section-content {
  padding: 1.5rem;
  display: none;
}

.section-content.expanded {
  display: block;
}

.section-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-content-editor {
  min-height: 200px;
  padding: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  white-space: pre-wrap; /* Preserve line breaks */
}

.section-content-editor:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.section-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark, #2563eb);
}

.btn-secondary {
  background: var(--gray-500);
  color: white;
}

.btn-secondary:hover {
  background: var(--gray-600);
}

.btn-danger {
  background: #dc3545;
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

.section-preview {
  background: var(--gray-50);
  padding: 1rem;
  border-radius: 6px;
  font-family: Georgia, serif;
  line-height: 1.6;
  color: var(--gray-800);
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap; /* Preserve line breaks and spaces */
}

.section-preview h1,
.section-preview h2,
.section-preview h3,
.section-preview h4,
.section-preview h5,
.section-preview h6 {
  color: var(--gray-900);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.section-preview p {
  margin-bottom: 0.75rem;
}

.section-preview ul,
.section-preview ol {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.section-preview li {
  margin-bottom: 0.25rem;
}

/* Drag and drop styles for section reordering */
.section-draghandle {
  cursor: move;
  color: var(--gray-400);
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.section-draghandle:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.document-section.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

.drop-zone {
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.5rem 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drop-zone.active {
  opacity: 1;
}

/* Section status indicators */
.section-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.draft {
  background: var(--yellow-500, #f59e0b);
}

.status-dot.complete {
  background: var(--green-500, #10b981);
}

.status-dot.empty {
  background: var(--gray-300);
}

/* Responsive design for section editor */
@media (max-width: 768px) {
  .section-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .editor-modes {
    width: 100%;
    justify-content: center;
  }
  
  .section-title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .section-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .section-form-actions {
    flex-direction: column;
  }
  
  .btn-sm {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================
   FILE UPLOAD STYLES
   ===================================== */

.file-upload-section {
  margin-bottom: 2rem;
}

.upload-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.upload-header {
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}

.upload-header h4 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-900);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.upload-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.upload-tabs {
  display: flex;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.upload-tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.upload-tab-btn:hover {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

.upload-tab-btn.active {
  background-color: white;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}

.upload-content {
  padding: 2rem;
}

.upload-tab-content {
  display: none;
}

.upload-tab-content.active {
  display: block;
}

.file-drop-zone {
  border: 2px dashed var(--gray-300);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--gray-50);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.file-drop-zone:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.file-drop-zone.drag-over {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  transform: scale(1.02);
}

.drop-zone-content i {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
  display: block;
}

.file-drop-zone.drag-over .drop-zone-content i {
  color: var(--primary);
}

.drop-zone-content h5 {
  margin: 0 0 0.5rem 0;
  color: var(--gray-700);
  font-weight: 600;
}

.drop-zone-content p {
  margin: 0 0 0.5rem 0;
  color: var(--gray-600);
}

.drop-zone-content small {
  color: var(--gray-500);
  font-size: 0.8rem;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.upload-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
}

.upload-status.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--success);
  color: var(--success-dark);
}

.upload-status.error {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger-dark);
}

.upload-status.uploading {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.upload-progress {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.upload-progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* Responsive design for file upload */
@media (max-width: 768px) {
  .upload-tabs {
    flex-direction: column;
  }
  
  .upload-tab-btn {
    text-align: center;
    padding: 0.75rem 1rem;
  }
  
  .file-drop-zone {
    padding: 2rem 1rem;
  }
  
  .drop-zone-content i {
    font-size: 2rem;
  }
  
  .upload-content {
    padding: 1rem;
  }
}
