@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --sidebar-width: 260px;
  --sidebar-bg: #0D1117;
  --sidebar-text: #7a8599;
  --sidebar-active: #8b5cf6;
  --sidebar-hover: rgba(255, 255, 255, 0.04);
  --content-bg: #0D1117;
  --card-bg: #151321;
  --card-border: rgba(255, 255, 255, 0.05);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --input-bg: #1a2235;
  --input-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f1f5f9;
  --text-secondary: #64748b;
  --accent-purple: #7c3aed;
  --accent-purple-hover: #6d28d9;
  --accent-cyan: #06b6d4;
}

html {
  scroll-behavior: smooth;
}

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

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--content-bg);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

/* === GLOBAL SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === LINKS === */
a {
  color: #8b5cf6;
}

a:hover {
  color: #a78bfa;
}

/* === LOGIN PAGE === */
.login-page {
  background: linear-gradient(135deg, #0B0F19 0%, #1a1040 50%, #0B0F19 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--card-border);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: white;
}

.login-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-demo {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}

.demo-accounts {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.demo-btn {
  flex: 1;
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 52px;
  display: flex;
  align-items: center;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.sidebar-brand i {
  font-size: 1.5rem;
  color: #8b5cf6;
}

.sidebar-user {
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.25rem 1rem;
}

.user-avatar {
  font-size: 2rem;
  color: var(--text-secondary);
}

.user-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  margin: 0.15rem 0.75rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
  border-radius: 10px;
  border: none;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.sidebar-nav .nav-link.active {
  background: rgba(139, 92, 246, 0.2);
  color: #d4c5ff;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.sidebar-nav .nav-link i {
  font-size: 1.1rem;
  width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 1rem 0;
  border-top: 1px solid var(--card-border);
}

.sidebar-footer .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.sidebar-footer .nav-link:hover {
  background: var(--sidebar-hover);
  color: #ef4444;
}

/* === CONTENT === */
.content-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-header {
  background: var(--content-bg);
  padding: 0 2rem;
  height: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sidebar-toggle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 0;
}

.content-main {
  padding: 2rem;
  flex: 1;
}

/* === STAT CARDS === */
.stat-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  border-left: 4px solid transparent;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-primary { border-left-color: #7c3aed; }
.stat-success { border-left-color: #22c55e; }
.stat-danger { border-left-color: #ef4444; }
.stat-warning { border-left-color: #f59e0b; }
.stat-info { border-left-color: #06b6d4; }

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.stat-primary .stat-icon { background: rgba(124, 58, 237, 0.15); color: #8b5cf6; }
.stat-success .stat-icon { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.stat-danger .stat-icon { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.stat-warning .stat-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.stat-info .stat-icon { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* === CARDS === */
.card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  background: var(--card-bg);
  color: var(--text-primary);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  padding: 1rem 1.25rem;
  border-radius: 12px 12px 0 0 !important;
}

.card-header h5,
.card-header h6 {
  color: var(--text-primary);
}

.card-body {
  background: transparent;
}

/* === TABLES === */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #c9d1d9;
  --bs-table-border-color: var(--card-border);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-color: var(--text-primary);
  color: #c9d1d9;
}

.table th {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  border-bottom-width: 1px;
  border-bottom-color: var(--card-border);
  padding: 0.75rem 1rem;
}

.table td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  border-bottom-color: var(--card-border);
  color: #c9d1d9;
}

.table tbody tr {
  transition: background-color 0.15s ease;
}

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

.table tbody tr:active {
  transform: scale(0.995);
}

/* === INFO TABLE === */
.info-table td {
  padding: 0.5rem 0;
}

.info-table td:first-child {
  width: 40%;
  color: var(--text-secondary);
}

/* === SERVICE CARDS === */
.service-card {
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
}

.border-dashed {
  border-style: dashed !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* === BADGES === */
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Dark semi-transparent badge overrides for bg-dark bg-opacity-50 */
.badge.bg-dark.bg-opacity-50 {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

/* Semi-transparent colored badges */
.badge.bg-success { background-color: rgba(34, 197, 94, 0.2) !important; color: #4ade80 !important; }
.badge.bg-danger { background-color: rgba(239, 68, 68, 0.2) !important; color: #f87171 !important; }
.badge.bg-warning { background-color: rgba(245, 158, 11, 0.2) !important; color: #fbbf24 !important; }
.badge.bg-primary { background-color: rgba(124, 58, 237, 0.2) !important; color: #a78bfa !important; }
.badge.bg-info { background-color: rgba(6, 182, 212, 0.2) !important; color: #22d3ee !important; }
.badge.bg-secondary { background-color: rgba(148, 163, 184, 0.15) !important; color: #94a3b8 !important; }

/* Rounded pill badges keep the semi-transparent look */
.badge.rounded-pill.bg-danger { background-color: rgba(239, 68, 68, 0.2) !important; }

/* === MOBILE ADAPTATION === */
@media (max-width: 767.98px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 2000;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  /* Overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .content-wrapper {
    margin-left: 0 !important;
    width: 100%;
  }

  .content-main {
    padding: 1rem !important;
  }

  .content-header {
    padding: 0 1rem !important;
  }

  /* Stack stat cards properly */
  .stat-card {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Tables on mobile - horizontal scroll */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table td, .table th {
    font-size: 0.8rem;
    padding: 0.5rem;
    white-space: nowrap;
  }

  /* Cards */
  .card-body {
    padding: 0.75rem;
  }

  .card-header {
    padding: 0.6rem 0.75rem;
  }

  /* Modal full-width on mobile */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  /* Booking calendar day buttons smaller */
  .day-btn {
    width: 40px;
    height: 52px;
    font-size: 0.85rem;
  }

  /* Slot buttons - wrap better */
  .slot-btn {
    min-width: 70px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Header title */
  .header-title {
    font-size: 0.95rem;
  }

  /* Theme switcher smaller on mobile */
  .theme-switcher .btn {
    padding: 2px 4px;
  }

  /* Amount display smaller */
  .amount-display.fs-2 { font-size: 1.5rem !important; }
  .amount-display.fs-3 { font-size: 1.25rem !important; }

  /* Filter bars wrap */
  .d-flex.gap-2.flex-wrap { gap: 0.5rem !important; }

  /* Sidebar user info compact */
  .sidebar-user {
    padding: 0.5rem 1rem;
  }

  /* Navigation compact */
  .sidebar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Service catalog mobile */
  .service-cat-card .card-body {
    padding: 0.75rem !important;
  }

  .service-cat-card .card-body h6 {
    font-size: 0.85rem;
  }

  .service-cat-cover {
    height: 80px !important;
  }

  .sub-service-item {
    flex-wrap: wrap;
    gap: 0.5rem !important;
    padding: 0.75rem !important;
  }

  .sub-service-controls {
    width: 100%;
    justify-content: space-between !important;
  }

  #catOrderForm .card-body {
    padding: 0.75rem !important;
  }
}

/* Small phones */
@media (max-width: 375px) {
  .stat-value { font-size: 0.9rem; }
  .day-btn { width: 36px; height: 48px; }
}

/* === SCROLLBAR (sidebar specific) === */
.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

/* === ALERTS === */
.alert {
  border-radius: 10px;
  border: none;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* === BTN === */
.btn {
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #7c3aed;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #5b21b6);
  border-color: #6d28d9;
  color: white;
}

.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
}

.btn-outline-primary {
  border-color: #7c3aed;
  color: #8b5cf6;
}

.btn-outline-primary:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: #8b5cf6;
  color: #a78bfa;
}

.btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
}

.btn-outline-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fca5a5;
}

.btn-outline-success {
  border-color: rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.btn-outline-success:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #86efac;
}

.btn-outline-warning {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fde68a;
}

.btn-success {
  background: #22c55e;
  border-color: #22c55e;
}

.btn-success:hover {
  background: #16a34a;
  border-color: #16a34a;
}

.btn-danger {
  background: #ef4444;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

.btn-warning {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #1e293b;
}

.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
  color: #1e293b;
}

.btn-link {
  color: #8b5cf6;
}

.btn-link:hover {
  color: #a78bfa;
}

/* === MODAL === */
.modal-content {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-primary);
}

.modal-header {
  border-bottom: 1px solid var(--card-border);
}

.modal-footer {
  border-top: 1px solid var(--card-border);
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.6);
}

/* === FORM === */
.form-control,
.form-select {
  background-color: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--input-bg);
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  color: var(--text-primary);
}

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

.form-control:disabled,
.form-control[readonly] {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.form-text {
  color: var(--text-secondary);
}

.input-group-text {
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--text-secondary);
}

/* === TOAST === */
.toast-custom {
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}

.toast-custom .toast-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
}

.toast-custom .toast-icon {
  font-size: 1.25rem;
}

/* === ANNOUNCEMENTS === */
.announcement-alert {
  border-radius: 12px;
  border: none;
  box-shadow: var(--card-shadow);
}

/* === PAY BUTTON === */
.pay-all-btn {
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === WIDGET CARDS === */
.widget-card {
  transition: all 0.2s;
  color: var(--text-primary);
}

.widget-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.3) !important;
  color: var(--text-primary);
}

.widget-card h6 {
  color: var(--text-primary);
}

/* === SIDEBAR OVERFLOW === */
.sidebar {
  overflow-y: auto;
}

/* === BOOKING CALENDAR === */
.day-btn {
  width: 48px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--card-bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.day-btn:hover {
  border-color: #7c3aed;
}

.day-btn.active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border-color: #7c3aed;
}

.day-btn.active small {
  color: white !important;
}

.day-btn.weekend small {
  color: #ef4444;
}

.day-btn.active.weekend small {
  color: #fca5a5 !important;
}

.day-btn.past {
  opacity: 0.4;
  pointer-events: none;
}

.day-btn small {
  font-size: 0.7rem;
  line-height: 1;
  color: var(--text-secondary);
}

.day-btn strong {
  font-size: 1.1rem;
  line-height: 1.2;
}

/* === BOOKING SLOTS === */
.slot-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  min-width: 100px;
  transition: all 0.2s;
}

.slot-btn:hover:not(.occupied) {
  border-color: #7c3aed;
}

.slot-btn.selected {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  border-color: #7c3aed;
}

.slot-btn.selected small {
  color: rgba(255, 255, 255, 0.7) !important;
}

.slot-btn.occupied {
  background: rgba(255, 255, 255, 0.03);
  color: #475569;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.06);
  text-decoration: line-through;
}

.slot-btn small {
  color: var(--text-secondary);
}

.slot-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.slot-group-title:first-child {
  margin-top: 0;
}

/* === BOOKING WEEK NAV === */
.week-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.week-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #7c3aed;
  color: #8b5cf6;
}

/* === BOOKING CONFIRM === */
.confirm-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--card-border);
}

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

.confirm-detail-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.confirm-detail-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* === LIST GROUP DARK === */
.list-group-item {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text-primary);
}

.list-group-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* === DROPDOWN DARK === */
.dropdown-menu {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.dropdown-item {
  color: var(--text-primary);
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

/* === PAGINATION DARK === */
.page-link {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: #8b5cf6;
}

.page-link:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: #7c3aed;
  color: #a78bfa;
}

.page-item.active .page-link {
  background: #7c3aed;
  border-color: #7c3aed;
}

/* === ACCORDION DARK === */
.accordion-item {
  background: var(--card-bg);
  border-color: var(--card-border);
}

.accordion-button {
  background: var(--card-bg);
  color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
  background: rgba(124, 58, 237, 0.1);
  color: #8b5cf6;
}

/* === NAV TABS DARK === */
.nav-tabs {
  border-bottom-color: var(--card-border);
}

.nav-tabs .nav-link {
  color: var(--text-secondary);
}

.nav-tabs .nav-link.active {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: #8b5cf6;
}

.nav-tabs .nav-link:hover {
  border-color: var(--card-border);
  color: var(--text-primary);
}

/* === NAV PILLS === */
.nav-pills .nav-link {
  color: var(--text-secondary);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
}

/* === MISC DARK OVERRIDES === */
.text-dark {
  color: var(--text-primary) !important;
}

.border-bottom {
  border-bottom-color: var(--card-border) !important;
}

.border {
  border-color: var(--card-border) !important;
}

hr {
  border-color: var(--card-border);
  opacity: 1;
}

/* Close button in dark mode */
.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Opacity overrides for better dark mode contrast */
.bg-warning.bg-opacity-10,
.bg-info.bg-opacity-10,
.bg-danger.bg-opacity-10,
.bg-success.bg-opacity-10 {
  background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
}

/* Amount display */
.amount-display {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.amount-box {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

/* Selection */
::selection {
  background: rgba(124, 58, 237, 0.3);
  color: white;
}

/* === SERVICE CATALOG === */
.service-cat-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-cat-card:hover {
  transform: translateY(-3px);
}

.service-cat-cover {
  height: 120px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.sub-service-item {
  transition: background-color 0.15s ease;
}

.sub-service-item:hover {
  background: rgba(255,255,255,0.03);
}
