/* ======================================================== */
/* Home Tuition Provider - Modern Tech Education Platform  */
/* Customizable Theme System                                */
/* ======================================================== */
:root {
  /* Base Palette */
  --theme-indigo: #4F46E5;
  --theme-indigo-hover: #4338CA;
  --theme-indigo-dark: #3730A3;
  --theme-purple: #7C3AED;
  --theme-purple-hover: #6D28D9;
  --theme-light-purple: #F5F3FF;
  --theme-light-purple-hover: #EDE9FE;
  --theme-white: #FFFFFF;
  --theme-text: #18181B;
  --theme-muted: #71717A;
  --theme-border: #E4E4E7;
  --theme-orange: #F97316;
  --theme-orange-hover: #EA580C;

  /* Theme Mapping */
  --primary-color: var(--theme-indigo);
  --primary-hover: var(--theme-indigo-hover);
  --primary-soft: var(--theme-light-purple);
  --secondary-color: var(--theme-purple);
  --accent-color: var(--theme-orange);
  --dark-color: var(--theme-text);
  --light-bg: #FAFAFC;
  --card-border: var(--theme-border);
  --text-main: var(--theme-text);
  --text-muted: var(--theme-muted);

  --tutor-badge: #10B981;
  --parent-badge: var(--theme-purple);
  --adsense-border: #D4D4D8;
  --adsense-bg: #F4F4F5;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ======================================================== */
/* Header & Navigation                                      */
/* ======================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--theme-border);
  transition: all 0.25s ease;
}

.navbar-brand {
  font-weight: 750;
  font-size: 1.3rem;
  letter-spacing: -0.4px;
  color: var(--theme-text) !important;
  display: inline-flex;
  align-items: center;
}

.brand-icon {
  background: linear-gradient(135deg, var(--theme-indigo), var(--theme-purple));
  color: var(--theme-white);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: transform 0.2s ease;
}

.navbar-brand:hover .brand-icon {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem !important;
  color: var(--theme-muted) !important;
  border-radius: 9999px;
  margin: 0 2px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--theme-indigo) !important;
  background-color: var(--theme-light-purple);
}

.nav-link.active {
  color: var(--theme-indigo) !important;
  background-color: var(--theme-light-purple);
  font-weight: 600;
}

/* Separate Sign Out Button */
/* Decent, Refined Sign Out Button */
.nav-signout-btn {
  font-weight: 600;
  font-weight: 500;
  font-size: 0.85rem;
  border-color: #FECACA;
  color: #DC2626;
  background-color: #FEF2F2;
  transition: all 0.2s ease;
  border: 1px solid var(--theme-border, #E4E4E7);
  color: var(--theme-muted, #4B5563);
  background-color: var(--theme-white, #FFFFFF);
  padding: 0.35rem 0.85rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-signout-btn i {
  color: #6B7280;
  transition: color 0.2s ease;
}

.nav-signout-btn:hover {
  background-color: #DC2626;
  border-color: #DC2626;
  color: #FFFFFF !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25);
  background-color: #F9FAFB;
  border-color: #D1D5DB;
  color: #DC2626 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.nav-signout-btn:hover i {
  color: #DC2626;
}

/* ======================================================== */
/* Modern Technology Hero Section                           */
/* ======================================================== */
.hero-section {
  background: linear-gradient(135deg, #18181B 0%, #1E1B4B 45%, #2E1065 100%);
  color: var(--theme-white);
  padding: 3.5rem 1rem;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 12px 30px -5px rgba(24, 24, 27, 0.4);
  position: relative;
  overflow: hidden;
  overflow: visible !important;
  z-index: 100;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28) 0%, rgba(79, 70, 229, 0.12) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero Badge High-Contrast Glass Pill */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-badge-pill i {
  color: #FBBF24 !important; /* Vivid gold sparkle */
}

.search-box-card {
  background: var(--theme-white);
  color: var(--theme-text);
  border-radius: 1.25rem;
  box-shadow: 0 20px 30px -5px rgba(79, 70, 229, 0.12), 0 8px 12px -6px rgba(24, 24, 27, 0.06);
  padding: 1.75rem;
  border: 1px solid var(--theme-border);
}

/* ======================================================== */
/* Buttons & Interactive Controls                           */
/* ======================================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--theme-indigo) 0%, var(--theme-purple) 100%);
  border: none;
  color: var(--theme-white);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--theme-indigo-hover) 0%, var(--theme-purple-hover) 100%);
  color: var(--theme-white);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--theme-indigo);
  border-color: var(--theme-indigo);
}

.btn-outline-primary:hover {
  background-color: var(--theme-indigo);
  border-color: var(--theme-indigo);
  color: var(--theme-white);
}

.btn-accent, .btn-orange {
  background-color: var(--theme-orange);
  border: none;
  color: var(--theme-white);
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
  transition: all 0.2s ease;
}

.btn-accent:hover, .btn-orange:hover {
  background-color: var(--theme-orange-hover);
  color: var(--theme-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.35);
}

.form-control:focus, .form-select:focus {
  border-color: var(--theme-indigo);
  box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.18);
}

/* ======================================================== */
/* Badges & Tags                                            */
/* ======================================================== */
.badge-role-tutor {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
}

.badge-role-parent {
  background-color: var(--theme-light-purple);
  color: var(--theme-purple);
  border: 1px solid #DDD6FE;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
}

.badge-role-admin {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 50rem;
}

.tag-badge {
  background-color: #F4F4F5;
  color: var(--theme-text);
  border: 1px solid var(--theme-border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 500;
  display: inline-block;
  margin: 2px;
}

.tag-badge-subject {
  background-color: var(--theme-light-purple);
  color: var(--theme-purple);
  border-color: #DDD6FE;
}

.tag-badge-class {
  background-color: #FFF7ED;
  color: #C2410C;
  border-color: #FED7AA;
}

/* ======================================================== */
/* User Card Styles                                         */
/* ======================================================== */
.user-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  transition: all 0.25s ease-in-out;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.user-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 24px -4px rgba(79, 70, 229, 0.1);
  border-color: var(--theme-indigo);
}

.avatar-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--theme-white);
  box-shadow: 0 4px 8px -1px rgba(24, 24, 27, 0.12);
  background-color: #E4E4E7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-large {
  width: 110px;
  height: 110px;
}

/* ======================================================== */
/* Privacy Notice & Rules Banner                            */
/* ======================================================== */
.privacy-badge-banner {
  background-color: #FFF7ED;
  border: 1px solid #FFEDD5;
  color: #9A3412;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
}

.confidential-lock {
  color: #059669;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ======================================================== */
/* Google AdSense Containers                                */
/* ======================================================== */
.adsense-slot-container {
  margin: 1.5rem auto;
  text-align: center;
  position: relative;
  max-width: 100%;
}

.adsense-preview-box {
  background: var(--adsense-bg);
  border: 1.5px dashed var(--adsense-border);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--theme-muted);
  transition: all 0.2s ease;
}

.adsense-preview-box:hover {
  background: #E4E4E7;
  border-color: #A1A1AA;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-muted);
  margin-bottom: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ad-header-banner {
  min-height: 90px;
  max-width: 970px;
}

.ad-infeed-banner {
  min-height: 120px;
  margin: 1.5rem 0;
}

.ad-sidebar-banner {
  min-height: 250px;
}

.ad-footer-banner {
  min-height: 90px;
  max-width: 970px;
}

/* ======================================================== */
/* Messaging / Chat UI                                      */
/* ======================================================== */
.chat-window {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--theme-border);
  background: var(--theme-light-purple);
  border-radius: 1rem 1rem 0 0;
}

.chat-body {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #FAFAFC;
}

.chat-bubble {
  max-width: 75%;
  padding: 0.85rem 1.15rem;
  border-radius: 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  position: relative;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--theme-indigo) 0%, var(--theme-purple) 100%);
  color: var(--theme-white);
  border-bottom-right-radius: 0.25rem;
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

.chat-bubble.received {
  align-self: flex-start;
  background-color: var(--theme-white);
  color: var(--theme-text);
  border-bottom-left-radius: 0.25rem;
  border: 1px solid var(--theme-border);
}

.chat-time {
  font-size: 0.72rem;
  margin-top: 0.35rem;
  opacity: 0.8;
  display: block;
  text-align: right;
}

.chat-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--theme-border);
  background: var(--theme-white);
  border-radius: 0 0 1rem 1rem;
}

/* ======================================================== */
/* Admin Dashboard Elements                                 */
/* ======================================================== */
.stat-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-color: var(--theme-indigo);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(79, 70, 229, 0.08);
}

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

/* ======================================================== */
/* Footer (High Contrast & Readability)                     */
/* ======================================================== */
footer {
  margin-top: auto;
  background: #111827 !important; /* Deep dark slate navy */
  color: #E2E8F0 !important;
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

footer h5, footer h6 {
  color: #F8FAFC !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

footer .text-muted,
footer p.text-muted,
footer div.text-muted,
footer span.text-muted,
footer small.text-muted {
  color: #CBD5E1 !important; /* High contrast light slate */
}

footer a {
  color: #93C5FD !important; /* Accessible bright sky blue */
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #FFFFFF !important;
  text-decoration: underline;
}

footer hr.border-secondary {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ======================================================== */
/* Seen Notification Indicators (Blue Double Tick)          */
/* ======================================================== */
.msg-status-seen,
.seen-tick-blue,
.seen-tick-blue i {
  color: #0284C7 !important; /* Vivid accessible blue */
}

.msg-status-sent,
.sent-tick-gray,
.sent-tick-gray i {
  color: #94A3B8 !important;
}

/* ======================================================== */
/* Universal Dropdowns & Scrolling Management               */
/* ======================================================== */
.dropdown-menu {
  max-height: min(75vh, 320px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1070;
  border-radius: 0.85rem;
  box-shadow: 0 10px 25px -5px rgba(24, 24, 27, 0.15), 0 8px 10px -6px rgba(24, 24, 27, 0.08);
  border: 1px solid var(--theme-border);
  scrollbar-width: thin;
  scrollbar-color: var(--theme-border) transparent;
}

.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: var(--theme-border);
  border-radius: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--theme-muted);
}

.dropdown-item {
  transition: all 0.15s ease;
  font-weight: 500;
  color: var(--theme-text);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--theme-light-purple);
  color: var(--theme-purple);
}

.dropdown-item.active {
  background-color: var(--theme-indigo) !important;
  color: var(--theme-white) !important;
}

/* Prevent dropdown clipping inside tables & responsive containers */
.table-responsive {
  overflow-x: auto;
  overflow-y: visible;
}

.table-responsive:has(.dropdown.show),
.table-responsive:has(.dropdown-menu.show) {
  overflow: visible !important;
}

/* Search Box & Hero overflow adjustments so cascading dropdowns never hide */
.search-box-card {
  overflow: visible !important;
  position: relative;
  z-index: 20;
  z-index: 105;
}

/* ======================================================== */
/* Searchable Dropdown Styling (Modern Floating Decent UI)  */
/* ======================================================== */
.custom-searchable-dropdown {
  position: relative;
  z-index: 25;
  z-index: 110;
}

.custom-searchable-dropdown.menu-open {
  z-index: 1050 !important;
}

.custom-searchable-dropdown .input-group {
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--theme-white);
  border: 1.5px solid var(--theme-border);
  overflow: hidden;
}

.custom-searchable-dropdown .input-group:focus-within {
  border-color: var(--theme-indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15), 0 4px 12px rgba(24, 24, 27, 0.06);
}

.custom-searchable-dropdown .dropdown-icon {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  padding-left: 0.85rem;
  padding-right: 0.4rem;
  color: var(--theme-indigo);
}

.custom-searchable-dropdown .search-input {
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--theme-text);
  padding: 0.55rem 0.5rem;
}

.custom-searchable-dropdown .search-input:focus {
  outline: none;
  box-shadow: none;
  cursor: text;
}

.custom-searchable-dropdown .clear-btn {
  border: none;
  background: transparent;
  color: var(--theme-muted);
  font-size: 0.85rem;
  padding: 0 0.5rem;
}

.custom-searchable-dropdown .clear-btn:hover {
  color: var(--theme-text);
  background: transparent;
}

.custom-searchable-dropdown .dropdown-toggle-btn {
  border: none;
  background: transparent;
  padding: 0 0.75rem;
}

.custom-searchable-dropdown .dropdown-toggle-btn i {
  transition: transform 0.2s ease;
}

.custom-searchable-dropdown.menu-open .dropdown-toggle-btn i {
  transform: rotate(180deg);
}

.custom-searchable-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1060;
  z-index: 9999 !important;
  border-radius: 14px;
  background-color: var(--theme-white);
  border: 1px solid var(--theme-border);
  box-shadow: 0 16px 36px -4px rgba(24, 24, 27, 0.14), 0 4px 12px rgba(24, 24, 27, 0.06);
  box-shadow: 0 20px 45px -4px rgba(24, 24, 27, 0.22), 0 10px 20px rgba(24, 24, 27, 0.1);
  padding: 0.35rem;
}

.custom-searchable-dropdown .dropdown-item-action {
  border: none;
  border-radius: 8px;
  margin-bottom: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.85rem;
  transition: all 0.15s ease;
  cursor: pointer;
  color: var(--theme-text);
  background: transparent;
}

.custom-searchable-dropdown .dropdown-item-action:hover,
.custom-searchable-dropdown .dropdown-item-action.focus-active {
  background-color: var(--theme-light-purple);
  color: var(--theme-purple);
  transform: translateX(2px);
}

.custom-searchable-dropdown .dropdown-item-action.active {
  background: linear-gradient(135deg, var(--theme-indigo) 0%, var(--theme-purple) 100%) !important;
  color: var(--theme-white) !important;
  font-weight: 600;
}

.custom-searchable-dropdown .dropdown-item-action .check-icon {
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.custom-searchable-dropdown .dropdown-item-action.active .check-icon {
  opacity: 1;
}

.custom-searchable-dropdown .category-header {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--theme-muted);
  padding: 0.5rem 0.85rem 0.25rem 0.85rem;
}

.custom-searchable-dropdown .add-custom-card {
  border-radius: 10px;
  background-color: #FFF7ED;
  border: 1px dashed rgba(249, 115, 22, 0.4);
  padding: 0.5rem 0.75rem;
  margin-top: 0.35rem;
}

.custom-searchable-dropdown .add-custom-btn {
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  background: transparent;
  color: var(--theme-orange);
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-searchable-dropdown .add-custom-btn:hover {
  color: var(--theme-orange-hover);
}

/* ======================================================== */
/* Teaching / Learning Mode & Time Slot Badges              */
/* ======================================================== */
.badge-mode-physical {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(2, 132, 199, 0.3) !important;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

.badge-mode-online {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(124, 58, 237, 0.3) !important;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.badge-mode-both {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
  padding: 0.38rem 0.85rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.badge-time-slot {
  background-color: var(--theme-light-purple, #F5F3FF) !important;
  color: var(--theme-purple, #7C3AED) !important;
  border: 1px solid var(--theme-border, #E4E4E7) !important;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.badge-time-slot:hover {
  background-color: #EDE9FE !important;
  border-color: #DDD6FE !important;
}

/* ======================================================== */
/* Admin Criteria Directory Live Search Box                 */
/* ======================================================== */
.directory-search-box {
  position: relative;
  max-width: 280px;
  width: 100%;
}

.directory-search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--theme-muted);
  pointer-events: none;
  font-size: 0.85rem;
}

.directory-search-box input {
  padding-left: 32px;
  padding-right: 30px;
  height: 36px;
  font-size: 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--theme-border);
  background-color: var(--theme-white);
  transition: all 0.2s ease;
}

.directory-search-box input:focus {
  border-color: var(--theme-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.directory-search-box .clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--theme-muted);
  font-size: 0.85rem;
  padding: 0;
  cursor: pointer;
}

.directory-search-box .clear-search-btn:hover {
  color: var(--theme-text);
}

.directory-count-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--theme-light-purple);
  color: var(--theme-purple);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

/* ======================================================== */
/* Subject-Wise Star Rating & Review Breakdown UI           */
/* ======================================================== */
.rating-stars {
  color: #f59e0b;
  display: inline-flex;
  gap: 2px;
}

.star-rating-select {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 8px;
}

.star-rating-select input {
  display: none !important;
}

.star-rating-select label {
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  user-select: none;
}

.star-rating-select label:hover,
.star-rating-select label:hover ~ label,
.star-rating-select input:checked ~ label {
  color: #f59e0b !important;
  transform: scale(1.15);
}

/* Rank Stars Badge */
.profile-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.15);
}

.profile-rank-badge i {
  color: #f59e0b;
}

/* Slot Occupancy Badge */
.profile-slot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
}

.profile-slot-badge.slot-available {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.profile-slot-badge.slot-busy {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.agreement-card {
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  background: var(--theme-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agreement-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.08);
}

.subject-rating-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 0.85rem;
  transition: all 0.2s ease;
}

.subject-rating-card:hover {
  border-color: var(--theme-purple);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.review-quote-bubble {
  background: var(--theme-light-purple);
  border-left: 3px solid var(--theme-indigo);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

/* ======================================================== */
/* Notification Badges (+1, +2 Pulse)                       */
/* ======================================================== */
.notification-pulse {
  animation: notification-pulse-anim 2s infinite ease-in-out;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

@keyframes notification-pulse-anim {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.badge-custom-new {
  background-color: var(--theme-orange) !important;
  color: var(--theme-white) !important;
}

/* ======================================================== */
/* Looking For Toggle & Sequential Dropdown Enhancements     */
/* ======================================================== */
.role-toggle-bar {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid var(--theme-border, #E2E8F0);
  border-radius: 9999px;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.role-toggle-group .btn-check:checked + .btn {
  background: linear-gradient(135deg, var(--theme-indigo, #4F46E5) 0%, var(--theme-purple, #7C3AED) 100%) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.role-toggle-group .btn {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.role-toggle-group .btn:hover {
  background-color: rgba(79, 70, 229, 0.08);
  color: var(--theme-indigo, #4F46E5);
}

.featured-country-item {
  background-color: #F0FDF4 !important;
  border-left: 3px solid #16A34A !important;
}

.featured-country-item:hover {
  background-color: #DCFCE7 !important;
}

.dropdown-step-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.step-num-pill {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--theme-indigo, #4F46E5);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

/* ======================================================== */
/* Language Switcher Styling                                */
/* ======================================================== */
.language-selector-dropdown .dropdown-toggle {
  font-size: 0.84rem;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--theme-border, #E4E4E7);
  background: var(--theme-white, #FFFFFF);
  color: var(--theme-text, #18181B);
  transition: all 0.2s ease;
}

.language-selector-dropdown .dropdown-toggle:hover {
  background: var(--theme-light-purple, #F5F3FF);
  border-color: var(--theme-indigo, #4F46E5);
  color: var(--theme-indigo, #4F46E5);
}

.language-selector-dropdown .dropdown-menu {
  min-width: 140px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--theme-border, #E4E4E7);
  padding: 0.35rem;
}

.language-selector-dropdown .dropdown-item {
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 0.45rem 0.75rem;
  font-weight: 500;
}

.language-selector-dropdown .dropdown-item.active {
  background-color: var(--theme-indigo, #4F46E5);
  color: #FFFFFF;
}

/* RTL Urdu Support */
html[lang="ur"] body,
body.lang-ur {
  font-family: 'Plus Jakarta Sans', 'Noto Nastaliq Urdu', 'Urdu Typesetting', system-ui, sans-serif !important;
}

/* Suspended Account Banner */
.account-suspended-banner {
  background: linear-gradient(90deg, #991B1B 0%, #DC2626 100%);
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
  border-bottom: 2px solid #7F1D1D;
  position: sticky;
  top: 0;
  z-index: 1080;
}

/* ======================================================== */
/* Responsive Mobile UI / UX Enhancements (< 768px)         */
/* ======================================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 2.25rem 0.75rem 1.5rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }

  .search-box-card {
    padding: 1.15rem 0.9rem !important;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  }

  .role-toggle-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }

  .role-toggle-group {
    display: flex !important;
    width: 100% !important;
  }

  .role-toggle-group .btn {
    flex: 1 1 auto;
    font-size: 0.75rem !important;
    padding: 0.4rem 0.35rem !important;
    text-align: center;
    white-space: normal;
  }

  .custom-searchable-dropdown .dropdown-menu {
    min-width: 100% !important;
    max-width: 100vw !important;
    max-height: 280px !important;
  }

  .custom-searchable-dropdown .search-input {
    font-size: 0.88rem;
    padding: 0.5rem 0.4rem;
  }

  /* Table responsive touch scrolling */
  .table-responsive {
    border-radius: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }

  /* Decent button touch sizes on mobile */
  .btn {
    min-height: 38px;
  }

  .btn-sm {
    min-height: 32px;
  }
}

/* ======================================================== */
/* MODERN ADMIN DASHBOARD & USER GOVERNANCE STYLES          */
/* ======================================================== */

.admin-header-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(124, 58, 237, 0.06) 100%);
  border: 1px solid var(--theme-border);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  position: relative;
  overflow: hidden;
}

.admin-header-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.admin-nav-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  border: 1px solid var(--theme-border);
  background: var(--theme-white);
  color: var(--theme-text);
  text-decoration: none;
}

.admin-nav-btn:hover {
  background: var(--primary-soft);
  color: var(--theme-indigo);
  border-color: var(--theme-indigo);
  transform: translateY(-1px);
}

.admin-nav-btn.active {
  background: var(--theme-indigo);
  color: #FFFFFF;
  border-color: var(--theme-indigo);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Enhanced KPI Cards */
.admin-kpi-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.admin-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -8px rgba(79, 70, 229, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(79, 70, 229, 0.35);
}

.kpi-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.kpi-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--theme-text);
  letter-spacing: -0.02em;
}

.kpi-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-muted);
}

/* Quick Filter Chips */
.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--theme-muted);
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: var(--primary-soft);
  color: var(--theme-indigo);
  border-color: var(--theme-indigo);
}

.filter-chip.active {
  background: var(--theme-indigo);
  color: #FFFFFF !important;
  border-color: var(--theme-indigo);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2);
}

.filter-chip .chip-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
}

.filter-chip.active .chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Admin Data Table */
.admin-data-table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-data-table thead th {
  background-color: #F8FAFC;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748B;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--theme-border);
  white-space: nowrap;
}

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

.admin-data-table tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.02) !important;
}

.admin-data-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.88rem;
}

.admin-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--theme-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.admin-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CNIC Confidential Tag */
.cnic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-family: monospace;
  font-weight: 600;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

/* Action Icon Buttons */
.action-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--theme-border);
  background: var(--theme-white);
  color: var(--theme-text);
  transition: all 0.15s ease;
  padding: 0;
  font-size: 0.82rem;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.action-btn-chat:hover {
  background: var(--theme-indigo);
  color: #FFFFFF;
  border-color: var(--theme-indigo);
}

.action-btn-perm:hover {
  background: #F59E0B;
  color: #FFFFFF;
  border-color: #F59E0B;
}

.action-btn-view:hover {
  background: #0284C7;
  color: #FFFFFF;
  border-color: #0284C7;
}

.action-btn-del:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
}

/* Interactive Permission Cards */
.perm-option-card {
  border: 1.5px solid var(--theme-border);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  background: var(--theme-white);
}

.perm-option-card:hover {
  border-color: var(--theme-indigo);
  background: rgba(79, 70, 229, 0.02);
}

.perm-option-card.active-perm {
  border-color: var(--theme-indigo);
  background: var(--primary-soft);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

/* ======================================================== */
/* Modern Home Page Overhaul Styles (Before & After Login)  */
/* ======================================================== */

/* Logged-In Command Center Banner */
.hero-logged-in-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  color: #FFFFFF;
}

.hero-logged-in-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Real-Time Interactive Home KPI Chips */
.home-kpi-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.home-kpi-chip:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.home-kpi-chip i {
  font-size: 0.88rem;
}

/* Trust & Value Pillars (4-Column Strip) */
.trust-pillar-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.trust-pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.08);
  border-color: var(--theme-indigo);
}

.trust-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

/* 3-Step Interactive Workflow Cards */
.how-it-works-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1.15rem;
  padding: 1.5rem;
  height: 100%;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.how-it-works-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -4px rgba(79, 70, 229, 0.12);
  border-color: var(--theme-indigo);
}

.how-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-indigo) 0%, var(--theme-purple) 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

/* High-Conversion Bottom CTA Cards */
.home-cta-card-tutor {
  background: linear-gradient(135deg, #1E1B4B 0%, #31104B 100%);
  color: #FFFFFF;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(30, 27, 75, 0.25);
}

.home-cta-card-parent {
  background: linear-gradient(135deg, #0F766E 0%, #0369A1 100%);
  color: #FFFFFF;
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.25);
}

/* Responsive Enhancements */
@media (max-width: 991.98px) {
  .hero-logged-in-card {
    padding: 1.15rem;
  }
  .home-kpi-chip {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
  }
}

/* ======================================================== */
/* Modern Executive Profile System (Tutor & Parent)         */
/* ======================================================== */
.profile-hero-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.04) 0%, rgba(99, 102, 241, 0.06) 50%, rgba(147, 51, 234, 0.04) 100%);
  border: 1px solid var(--theme-border);
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.profile-hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-indigo), var(--theme-purple), #06b6d4);
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
}

.profile-avatar-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 2.5px var(--theme-indigo), 0 10px 25px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}

.profile-id-pill {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.72rem;
  color: var(--theme-muted);
  background: rgba(100, 116, 139, 0.1);
  border: 1px solid rgba(100, 116, 139, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.profile-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.profile-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.profile-slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
}

.profile-slot-chip.available {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.profile-slot-chip.booked {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.profile-section-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1.15rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-section-card:hover {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.profile-section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--theme-border);
}

.profile-heading-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.profile-heading-icon.indigo {
  background: #EEF2FF;
  color: #4F46E5;
}

.profile-heading-icon.emerald {
  background: #ECFDF5;
  color: #059669;
}

.profile-heading-icon.amber {
  background: #FEF3C7;
  color: #D97706;
}

.profile-heading-icon.sky {
  background: #F0F9FF;
  color: #0284C7;
}

.profile-heading-icon.rose {
  background: #FFF1F2;
  color: #E11D48;
}

.subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #EEF2FF;
  color: #3730A3;
  border: 1px solid #C7D2FE;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.subject-chip:hover {
  background: #4F46E5;
  color: #ffffff;
  border-color: #4F46E5;
  transform: translateY(-1px);
}

.class-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 0.6rem;
}

.slot-visual-card {
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--theme-border);
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.slot-visual-card.available {
  border-color: #A7F3D0;
  background: #F0FDF4;
}

.slot-visual-card.booked {
  border-color: #FECACA;
  background: #FEF2F2;
}

.agreement-cta-banner {
  background: linear-gradient(135deg, #0F766E 0%, #065F46 100%);
  color: #FFFFFF;
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 118, 110, 0.2);
}

.agreement-cta-banner h5 {
  color: #FFFFFF !important;
  font-weight: 700;
}

.agreement-cta-banner p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.review-card-modern {
  background: #FFFFFF;
  border: 1px solid var(--theme-border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  border-color: #FCD34D;
}

.chat-bubble-sent {
  background: linear-gradient(135deg, var(--theme-indigo) 0%, var(--theme-purple) 100%);
  color: #FFFFFF;
  border-radius: 1rem 1rem 0.2rem 1rem;
  padding: 0.85rem 1.15rem;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.18);
}

.chat-bubble-received {
  background: #F1F5F9;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-radius: 1rem 1rem 1rem 0.2rem;
  padding: 0.85rem 1.15rem;
  max-width: 85%;
}

.sidebar-action-card {
  background: var(--theme-white);
  border: 1px solid var(--theme-border);
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.safety-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--theme-muted);
}

.safety-check-item i {
  color: #10B981;
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ======================================================== */
/* Enhanced Professional Menu Bar & Navigation              */
/* ======================================================== */
.navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--theme-border, #E2E8F0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.65rem 0;
}

.navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(226, 232, 240, 0.9);
  padding: 0.5rem 0;
}

.brand-icon {
  background: linear-gradient(135deg, var(--theme-indigo, #4F46E5), var(--theme-purple, #7C3AED));
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover .brand-icon {
  transform: translateY(-1px) rotate(-4deg) scale(1.06);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
}

.brand-text-accent {
  background: linear-gradient(135deg, var(--theme-indigo, #4F46E5), var(--theme-purple, #7C3AED));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.95rem !important;
  color: var(--theme-muted, #64748B) !important;
  border-radius: 9999px;
  margin: 0 3px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link:hover {
  color: var(--theme-indigo, #4F46E5) !important;
  background-color: var(--theme-light-purple, #F5F3FF);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--theme-indigo, #4F46E5) !important;
  background-color: var(--theme-light-purple, #F5F3FF);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
}

/* Quick Theme Mode Toggle Button */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--theme-border, #E2E8F0);
  background: var(--theme-white, #FFFFFF);
  color: var(--theme-text, #1E293B);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-theme-toggle:hover {
  background: var(--theme-light-purple, #F5F3FF);
  color: var(--theme-indigo, #4F46E5);
  border-color: var(--theme-indigo, #4F46E5);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.18);
}

.btn-theme-toggle.rotate-spin {
  animation: themeSpin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes themeSpin {
  0% { transform: rotate(0deg) scale(0.9); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Theme Palette Dropdown */
.theme-palette-btn {
  border: 1px solid var(--theme-border, #E2E8F0);
  background: var(--theme-white, #FFFFFF);
  color: var(--theme-text, #1E293B);
  font-weight: 500;
  transition: all 0.2s ease;
}

.theme-palette-btn:hover {
  background: var(--theme-light-purple, #F5F3FF);
  border-color: var(--theme-indigo, #4F46E5);
  color: var(--theme-indigo, #4F46E5);
}

.palette-swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* User Avatar & Dropdown Pill */
.nav-user-pill {
  background: var(--theme-white, #FFFFFF);
  border: 1px solid var(--theme-border, #E2E8F0);
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-user-pill:hover {
  background: var(--theme-light-purple, #F5F3FF);
  border-color: var(--theme-indigo, #4F46E5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.avatar-wrapper img {
  border-radius: 50%;
  border: 2px solid var(--theme-indigo, #4F46E5);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Pulsing Notification Badge */
.notification-pulse {
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* ======================================================== */
/* Professional Dark Mode System (WCAG AA Compliant)        */
/* ======================================================== */
[data-theme="dark"], [data-bs-theme="dark"] {
  --light-bg: #0B0F19;
  --theme-white: #111827;
  --theme-text: #F8FAFC;
  --theme-muted: #94A3B8;
  --theme-border: #26354D;
  --card-border: #26354D;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --dark-color: #F8FAFC;
  --theme-light-purple: rgba(79, 70, 229, 0.16);
  --theme-light-purple-hover: rgba(79, 70, 229, 0.25);
  color-scheme: dark;
}

/* Dark Mode Body & Containers */
[data-theme="dark"] body,
[data-bs-theme="dark"] body {
  background-color: #0B0F19 !important;
  color: #F8FAFC !important;
}

/* Dark Mode Navbar */
[data-theme="dark"] .navbar,
[data-bs-theme="dark"] .navbar {
  background: rgba(11, 15, 25, 0.88) !important;
  border-bottom: 1px solid #1E293B !important;
}

[data-theme="dark"] .navbar.navbar-scrolled,
[data-bs-theme="dark"] .navbar.navbar-scrolled {
  background: rgba(11, 15, 25, 0.98) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  border-bottom-color: #2D3748 !important;
}

[data-theme="dark"] .navbar-brand,
[data-bs-theme="dark"] .navbar-brand {
  color: #F8FAFC !important;
}

[data-theme="dark"] .navbar-brand .text-dark,
[data-bs-theme="dark"] .navbar-brand .text-dark {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .nav-link,
[data-bs-theme="dark"] .nav-link {
  color: #94A3B8 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link:hover {
  color: #818CF8 !important;
  background-color: rgba(99, 102, 241, 0.15) !important;
}

[data-theme="dark"] .nav-link.active,
[data-bs-theme="dark"] .nav-link.active {
  color: #A5B4FC !important;
  background-color: rgba(99, 102, 241, 0.2) !important;
}

/* Dark Mode Cards & Surfaces */
[data-theme="dark"] .card,
[data-bs-theme="dark"] .card,
[data-theme="dark"] .tutor-card,
[data-bs-theme="dark"] .tutor-card,
[data-theme="dark"] .tutor-card-grid,
[data-bs-theme="dark"] .tutor-card-grid,
[data-theme="dark"] .profile-card,
[data-bs-theme="dark"] .profile-card,
[data-theme="dark"] .review-card-modern,
[data-bs-theme="dark"] .review-card-modern,
[data-theme="dark"] .sidebar-action-card,
[data-bs-theme="dark"] .sidebar-action-card,
[data-theme="dark"] .agreement-card,
[data-bs-theme="dark"] .agreement-card {
  background-color: #131B2E !important;
  border-color: #26354D !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .card:hover,
[data-bs-theme="dark"] .card:hover,
[data-theme="dark"] .tutor-card:hover,
[data-bs-theme="dark"] .tutor-card:hover {
  border-color: #3B82F6 !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Dark Mode Modals & Popups */
[data-theme="dark"] .modal-content,
[data-bs-theme="dark"] .modal-content {
  background-color: #111827 !important;
  border: 1px solid #26354D !important;
  color: #F8FAFC !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer,
[data-bs-theme="dark"] .modal-footer {
  border-color: #1F2937 !important;
}

[data-theme="dark"] .btn-close,
[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dark Mode Dropdowns */
[data-theme="dark"] .dropdown-menu,
[data-bs-theme="dark"] .dropdown-menu {
  background-color: #131B2E !important;
  border: 1px solid #26354D !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .dropdown-item,
[data-bs-theme="dark"] .dropdown-item {
  color: #E2E8F0 !important;
}

[data-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:hover {
  background-color: #1E293B !important;
  color: #60A5FA !important;
}

[data-theme="dark"] .dropdown-divider,
[data-bs-theme="dark"] .dropdown-divider {
  border-color: #1F2937 !important;
}

/* Dark Mode Inputs & Controls */
[data-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-select {
  background-color: #182236 !important;
  border-color: #2E3E5C !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #1C2840 !important;
  border-color: #6366F1 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

[data-theme="dark"] .input-group-text,
[data-bs-theme="dark"] .input-group-text {
  background-color: #182236 !important;
  border-color: #2E3E5C !important;
  color: #94A3B8 !important;
}

/* Dark Mode Custom Searchable Dropdowns */
[data-theme="dark"] .custom-searchable-dropdown .dropdown-menu,
[data-bs-theme="dark"] .custom-searchable-dropdown .dropdown-menu {
  background-color: #131B2E !important;
  border: 1px solid #26354D !important;
}

[data-theme="dark"] .custom-searchable-dropdown .list-group-item,
[data-bs-theme="dark"] .custom-searchable-dropdown .list-group-item {
  background-color: transparent !important;
  color: #E2E8F0 !important;
  border-color: #1E293B !important;
}

[data-theme="dark"] .custom-searchable-dropdown .list-group-item:hover,
[data-bs-theme="dark"] .custom-searchable-dropdown .list-group-item:hover {
  background-color: #1E293B !important;
  color: #818CF8 !important;
}

/* Dark Mode Buttons */
[data-theme="dark"] .btn-theme-toggle,
[data-bs-theme="dark"] .btn-theme-toggle {
  background: #182236 !important;
  border-color: #2E3E5C !important;
  color: #FCD34D !important;
}

[data-theme="dark"] .btn-theme-toggle:hover,
[data-bs-theme="dark"] .btn-theme-toggle:hover {
  background: #1E293B !important;
  color: #FBBF24 !important;
  border-color: #F59E0B !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .btn-light,
[data-bs-theme="dark"] .btn-light {
  background-color: #182236 !important;
  border-color: #2E3E5C !important;
  color: #E2E8F0 !important;
}

[data-theme="dark"] .btn-light:hover,
[data-bs-theme="dark"] .btn-light:hover {
  background-color: #1E293B !important;
  border-color: #3B82F6 !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-secondary {
  border-color: #334155 !important;
  color: #CBD5E1 !important;
}

[data-theme="dark"] .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #1E293B !important;
  color: #FFFFFF !important;
}

/* Dark Mode Text Helpers */
[data-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-dark {
  color: #F8FAFC !important;
}

[data-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-muted {
  color: #94A3B8 !important;
}

[data-theme="dark"] .bg-light,
[data-bs-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-white {
  background-color: #131B2E !important;
}

[data-theme="dark"] .border,
[data-bs-theme="dark"] .border {
  border-color: #26354D !important;
}

[data-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-bottom,
[data-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-top {
  border-color: #26354D !important;
}

/* Dark Mode Chat Bubbles */
[data-theme="dark"] .chat-window,
[data-bs-theme="dark"] .chat-window {
  background-color: #111827 !important;
  border-color: #26354D !important;
}

[data-theme="dark"] .chat-header,
[data-bs-theme="dark"] .chat-header {
  background-color: #131B2E !important;
  border-color: #26354D !important;
}

[data-theme="dark"] .chat-body,
[data-bs-theme="dark"] .chat-body {
  background-color: #0B0F19 !important;
}

[data-theme="dark"] .chat-footer,
[data-bs-theme="dark"] .chat-footer {
  background-color: #131B2E !important;
  border-color: #26354D !important;
}

[data-theme="dark"] .chat-bubble-received,
[data-bs-theme="dark"] .chat-bubble-received,
[data-theme="dark"] .chat-bubble.received,
[data-bs-theme="dark"] .chat-bubble.received {
  background: #182236 !important;
  color: #F8FAFC !important;
  border: 1px solid #26354D !important;
}

/* Dark Mode Tables */
[data-theme="dark"] .table,
[data-bs-theme="dark"] .table {
  color: #F8FAFC !important;
  border-color: #26354D !important;
}

[data-theme="dark"] .table > :not(caption) > * > *,
[data-bs-theme="dark"] .table > :not(caption) > * > * {
  background-color: #131B2E !important;
  border-bottom-color: #26354D !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > *,
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: #182236 !important;
}

[data-theme="dark"] .table-hover > tbody > tr:hover > *,
[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  background-color: #1E2B44 !important;
}

/* Dark Mode Ad Slots */
[data-theme="dark"] .ad-preview-box,
[data-bs-theme="dark"] .ad-preview-box {
  background-color: #131B2E !important;
  border-color: #26354D !important;
}

/* Dark Mode Footer */
[data-theme="dark"] footer,
[data-bs-theme="dark"] footer {
  background: #080C14 !important;
  border-top: 1px solid #1E293B !important;
}

[data-theme="dark"] .profile-hero-banner,
[data-bs-theme="dark"] .profile-hero-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(99, 102, 241, 0.1) 50%, rgba(147, 51, 234, 0.08) 100%) !important;
  border-color: #26354D !important;
}

[data-theme="dark"] .role-toggle-bar,
[data-bs-theme="dark"] .role-toggle-bar {
  background: #182236 !important;
  border-color: #2E3E5C !important;
}

[data-theme="dark"] .dropdown-step-label,
[data-bs-theme="dark"] .dropdown-step-label {
  color: #CBD5E1 !important;
}

[data-theme="dark"] .home-kpi-chip,
[data-bs-theme="dark"] .home-kpi-chip {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .profile-avatar-container,
[data-bs-theme="dark"] .profile-avatar-container {
  background: #131B2E !important;
}

[data-theme="dark"] .profile-rate-pill,
[data-bs-theme="dark"] .profile-rate-pill,
[data-theme="dark"] .profile-id-pill,
[data-bs-theme="dark"] .profile-id-pill,
[data-theme="dark"] .profile-rank-pill,
[data-bs-theme="dark"] .profile-rank-pill,
[data-theme="dark"] .profile-slot-pill,
[data-bs-theme="dark"] .profile-slot-pill {
  background: #182236 !important;
  border-color: #2E3E5C !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .preset-card,
[data-bs-theme="dark"] .preset-card {
  background: #131B2E !important;
  border-color: #26354D !important;
  color: #F8FAFC !important;
}

[data-theme="dark"] .preset-card:hover,
[data-bs-theme="dark"] .preset-card:hover {
  background: #182236 !important;
  border-color: var(--theme-indigo, #4F46E5) !important;
}


