/* Online Tuitions Dashboard - Premium Glassmorphic Stylesheet (QubikCS Educational Theme) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Dark Theme variables (green slate palette) */
  --bg-primary: #0a0e0c; /* Deep green slate */
  --bg-secondary: rgba(18, 25, 22, 0.65);
  --bg-sidebar: rgba(12, 18, 15, 0.85);
  --bg-card: rgba(26, 36, 31, 0.45);
  --bg-input: rgba(14, 20, 17, 0.7);
  
  --primary: #4d8e78; /* Soothing learning green */
  --primary-gradient: linear-gradient(135deg, #4d8e78 0%, #2f6150 100%);
  --secondary-gradient: linear-gradient(135deg, #df9b6d 0%, #a7663e 100%);
  --accent-cyan: #3a808f; /* Muted teal */
  
  --text-main: #f1f5f3;
  --text-muted: #8ca398;
  --text-inverse: #0d1210;
  
  --border-glass: rgba(255, 255, 255, 0.06);
  --border-focus: #4d8e78;
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(77, 142, 120, 0.2);
  
  --success: #67a87e; /* Learning success */
  --warning: #dfa04b; /* Soft gold */
  --danger: #cf6666; /* Muted red */
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides (Warm Cream & Green Palette) */
body.light-theme {
  --bg-primary: #f6f7f4; /* Clean cream green */
  --bg-secondary: rgba(255, 255, 255, 0.85);
  --bg-sidebar: rgba(240, 243, 239, 0.95);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-input: #ffffff;
  
  --primary: #4d8e78;
  --primary-gradient: linear-gradient(135deg, #4d8e78 0%, #396f5c 100%);
  
  --text-main: #1b2621;
  --text-muted: #5e6f66;
  --text-inverse: #ffffff;
  
  --border-glass: rgba(0, 0, 0, 0.06);
  --border-focus: #396f5c;
  --shadow-glass: 0 8px 32px 0 rgba(77, 142, 120, 0.05);
  --shadow-glow: 0 0 20px rgba(77, 142, 120, 0.1);
}

/* Reset and Globals */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Utility Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* SPA Core Layout */
#app {
  display: flex;
  min-height: 100vh;
}

.view-section {
  display: none;
  flex: 1;
  width: 100%;
}

.view-section.active {
  display: flex;
}

/* ==========================================================================
   1. LOGIN PAGE VIEW
   ========================================================================== */
.login-view-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  width: 100vw;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .login-view-container {
    grid-template-columns: 1fr;
  }
  .login-showcase-panel {
    display: none !important;
  }
}

/* Left Login Control Panel */
.login-control-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(18, 25, 22, 0.9) 100%);
  position: relative;
  overflow-y: auto;
}

.login-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-brand-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}

.login-brand-text {
  font-size: 28px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
  position: relative;
}

.login-header h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 16px;
}

.form-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(77, 142, 120, 0.15);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  color: white;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(77, 142, 120, 0.3);
}

.login-btn:active {
  transform: translateY(0);
}

/* Quick Login Simulator Panel */
.quick-login-panel {
  margin-top: 24px;
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(16px);
}

.quick-login-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.quick-login-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-login-btn {
  padding: 10px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.quick-login-btn:hover {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Right Showcase Panel */
.login-showcase-panel {
  background: var(--primary-gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  position: relative;
  color: white;
  text-align: center;
}

.showcase-mesh {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(94, 111, 102, 0.4) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(58, 128, 143, 0.4) 0%, transparent 50%);
  z-index: 1;
}

.showcase-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.showcase-graphic {
  width: 100%;
  max-width: 320px;
  height: 240px;
  margin: 0 auto 40px auto;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.graphic-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.graphic-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.graphic-label {
  font-size: 14px;
  font-weight: 600;
}

.graphic-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.graphic-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--accent-cyan);
  border-radius: 4px;
  animation: pulse-bar 3s infinite ease-in-out;
}

.showcase-content h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.showcase-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.6;
}

@keyframes pulse-bar {
  0% { width: 30%; }
  50% { width: 85%; }
  100% { width: 30%; }
}

/* Language Selection Toggle */
.language-selector-wrapper {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}

.lang-select {
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.lang-select:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   2. DASHBOARD VIEW SHELL
   ========================================================================== */
.dashboard-view-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* Sidebar Styling */
.sidebar-panel {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: var(--transition);
  z-index: 5;
}

@media (max-width: 768px) {
  .sidebar-panel {
    position: fixed;
    left: -260px;
    height: 100%;
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }
  .sidebar-panel.mobile-active {
    left: 0;
  }
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
}

.sidebar-brand-text {
  font-size: 20px;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.nav-item i {
  font-size: 16px;
  width: 20px;
}

.nav-item:hover, .nav-item.active {
  background: var(--primary-gradient);
  color: white;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
}

.profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border-focus);
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 120px;
  overflow: hidden;
}

.profile-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.profile-role-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(77, 142, 120, 0.2);
  color: #a8d5c3;
  font-weight: 600;
  text-transform: uppercase;
  align-self: flex-start;
}

.signout-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: rgba(207, 102, 102, 0.1);
  justify-content: center;
}

.signout-btn:hover {
  background: var(--danger);
  color: white;
}

/* Dashboard Workspace Layout */
.dashboard-content-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

.top-bar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 4;
}

@media (max-width: 768px) {
  .top-bar-wrapper {
    padding: 15px 20px;
  }
}

.menu-toggle {
  display: none;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

.welcome-widget h2 {
  font-size: 20px;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

/* Main Board Inner Scroll */
.dashboard-inner-board {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

@media (max-width: 768px) {
  .dashboard-inner-board {
    padding: 20px;
  }
}

/* General Layout Widgets */
.dashboard-role-view {
  display: none;
  flex-direction: column;
  gap: 30px;
}

.dashboard-role-view.active {
  display: flex;
}

/* Cards & Styling Grid */
.stats-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.stat-card-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.stat-card-widget:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.stat-card-info h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.stat-card-info p {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.stat-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(77, 142, 120, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}

.stat-card-widget:nth-child(2) .stat-card-icon {
  background: rgba(103, 168, 126, 0.15);
  color: var(--success);
}
.stat-card-widget:nth-child(3) .stat-card-icon {
  background: rgba(223, 160, 75, 0.15);
  color: var(--warning);
}
.stat-card-widget:nth-child(4) .stat-card-icon {
  background: rgba(58, 128, 143, 0.15);
  color: var(--accent-cyan);
}

/* ==========================================================================
   3. CLIENT/CUSTOMER VIEW COMPONENTS
   ========================================================================== */
.client-hero-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.hero-banner-glow {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.2;
}

.client-hero-details {
  display: flex;
  align-items: center;
  gap: 20px;
}

.client-hero-details h1 {
  font-size: 26px;
  margin-bottom: 6px;
}

.client-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.client-hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Double column structures */
.double-column-dashboard {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .double-column-dashboard {
    grid-template-columns: 1fr;
  }
}

.dashboard-board-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.board-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.board-card-header h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Leaf Calendar Design */
.calendar-leaf-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.calendar-leaf-header {
  background: var(--primary-gradient);
  color: white;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calendar-leaf-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.calendar-leaf-day {
  font-size: 48px;
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1;
  color: var(--text-main);
}

.calendar-leaf-month {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Subjects Display Rows */
.subject-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subject-item-card {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.subject-item-card:hover {
  border-color: var(--border-focus);
}

.subject-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.subject-item-title {
  font-weight: 600;
  font-size: 15px;
}

.subject-tutor-label {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-track-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-track-bg {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: width 0.8s ease;
}

.progress-percent-val {
  font-size: 12px;
  font-weight: 700;
  width: 32px;
  text-align: right;
}

.subject-badge-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(58, 128, 143, 0.15);
  color: var(--accent-cyan);
}

.subject-item-card:nth-child(2) .subject-badge-pill {
  background: rgba(223, 155, 109, 0.15);
  color: #df9b6d;
}

/* Package details & Premium gold upgrade */
.plan-overview-card {
  background: linear-gradient(135deg, rgba(77, 142, 120, 0.1) 0%, rgba(58, 128, 143, 0.1) 100%);
  border: 1px solid var(--border-glass);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.upgrade-glow-dot {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.plan-tier-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  background: var(--secondary-gradient);
  padding: 4px 10px;
  border-radius: 12px;
  align-self: flex-start;
}

.upgrade-plan-action {
  padding: 12px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.upgrade-plan-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Live indicators styling */
.live-lesson-widget {
  background: linear-gradient(135deg, rgba(207, 102, 102, 0.08) 0%, rgba(77, 142, 120, 0.08) 100%);
  border: 1px solid rgba(207, 102, 102, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-pulse-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--danger); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.join-live-btn {
  padding: 12px;
  background: var(--danger);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.join-live-btn:hover {
  background: #c25353;
  box-shadow: 0 8px 20px rgba(207, 102, 102, 0.3);
  transform: translateY(-2px);
}

/* FAQ Accordion Styling */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question-bar {
  padding: 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer-block {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-item-tile.expanded {
  border-color: var(--primary);
}

.faq-item-tile.expanded .faq-question-bar {
  background: rgba(77, 142, 120, 0.05);
}

.faq-item-tile.expanded .faq-answer-block {
  padding: 16px;
  max-height: 1000px;
  border-top: 1px solid var(--border-glass);
}

.faq-question-bar i {
  transition: transform 0.3s ease;
}

.faq-item-tile.expanded .faq-question-bar i {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Billing invoices structure */
.invoice-table-container {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.dashboard-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.dashboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-glass);
}

.status-badge {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
}

.status-badge.paid {
  background: rgba(103, 168, 126, 0.15);
  color: var(--success);
}
.status-badge.pending {
  background: rgba(223, 160, 75, 0.15);
  color: var(--warning);
}
.status-badge.active {
  background: rgba(103, 168, 126, 0.15);
  color: var(--success);
}
.status-badge.renewal {
  background: rgba(223, 160, 75, 0.15);
  color: var(--warning);
}
.status-badge.expired {
  background: rgba(207, 102, 102, 0.15);
  color: var(--danger);
}

/* Report Card Design Elements */
.report-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.report-meta-tile h4 {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.report-meta-tile p {
  font-size: 18px;
  font-weight: 700;
}

.tutor-remarks-box {
  background: rgba(77, 142, 120, 0.05);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 13px;
  line-height: 1.6;
}

/* Request Recording Widget */
.req-rec-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .req-rec-form {
    grid-template-columns: 1fr;
  }
}

.mini-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-input-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.mini-select, .mini-input {
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  outline: none;
  font-size: 12px;
}

.mini-btn {
  padding: 10px 18px;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 12px;
  transition: var(--transition);
}

.mini-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   4. TUTOR VIEW COMPONENTS
   ========================================================================== */
.tutor-student-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

@media (max-width: 600px) {
  .tutor-student-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.tutor-student-card:hover {
  border-color: var(--primary);
  background: rgba(26, 36, 31, 0.6);
}

.tutor-student-details h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.tutor-student-details p {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutor-student-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.tutor-student-meta div {
  text-align: right;
}

@media (max-width: 600px) {
  .tutor-student-meta div {
    text-align: center;
  }
}

.tutor-student-meta p {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
}

.tutor-student-meta span {
  font-size: 11px;
  color: var(--text-muted);
}

.tutor-action-btn {
  padding: 8px 14px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.tutor-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   5. SALES VIEW COMPONENTS
   ========================================================================== */
.expiry-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.expiry-indicator-dot.active {
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.expiry-indicator-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 8px var(--warning);
}
.expiry-indicator-dot.expired {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

.sales-validity-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: var(--transition);
}

.sales-validity-card:hover {
  border-color: var(--border-focus);
}

.sales-client-info h4 {
  font-size: 14px;
  margin-bottom: 2px;
}

.sales-client-info p {
  font-size: 11px;
  color: var(--text-muted);
}

.sales-expiry-details {
  text-align: right;
}

.sales-expiry-details p {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sales-renew-action {
  padding: 6px 12px;
  border: 1px solid var(--border-glass);
  background: rgba(103, 168, 126, 0.15);
  color: var(--success);
  border-radius: var(--radius-md);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sales-renew-action:hover {
  background: var(--success);
  color: white;
  border-color: transparent;
}

/* Gauge progress */
.sales-target-gauge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0% var(--target-pct, 0%), rgba(255,255,255,0.05) var(--target-pct, 0%) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-glass);
}

.sales-target-gauge::before {
  content: '';
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-primary);
  position: absolute;
}

.sales-gauge-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sales-gauge-inner p {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.sales-gauge-inner span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==========================================================================
   6. ADMIN VIEW COMPONENTS
   ========================================================================== */
.admin-alloc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto;
  gap: 16px;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .admin-alloc-form {
    grid-template-columns: 1fr;
  }
}

.admin-alloc-btn {
  padding: 12px 24px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-alloc-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   7. MODALS AND LIGHTBOX PLAYERS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  animation: modal-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

@keyframes modal-slide {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close-btn {
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--danger);
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Pricing Grid inside Modal */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card:hover, .price-card.selected {
  border-color: var(--border-focus);
  background: rgba(77, 142, 120, 0.05);
}

.price-card.selected {
  box-shadow: var(--shadow-glow);
}

.price-card h4 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.price-card p {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.price-card ul {
  list-style: none;
  font-size: 11px;
  color: var(--text-muted);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.price-card ul li i {
  color: var(--success);
  margin-right: 6px;
}

/* Video Player elements */
.mock-video-player {
  background: black;
  width: 100%;
  height: 280px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.video-mesh-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(18, 25, 22, 0.4) 0%, rgba(0,0,0,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-slides-box {
  width: 70%;
  height: 140px;
  background: #151b18;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  text-align: center;
}

.video-slides-box h5 {
  color: var(--accent-cyan);
  font-size: 13px;
  margin-bottom: 6px;
}

.video-slides-box p {
  font-size: 11px;
  color: #8ca398;
}

.video-controls-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.stream-meta-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stream-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
  animation: pulse-dot 1.5s infinite;
}

/* Toast Container Alerts */
.toast-alerts-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-glass);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: toast-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-item.success {
  border-left-color: var(--success);
}
.toast-item.warning {
  border-left-color: var(--warning);
}
.toast-item.danger {
  border-left-color: var(--danger);
}

@keyframes toast-slide {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.dashboard-legal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 18px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 12px;
}

.dashboard-legal-footer a:hover {
  color: var(--primary);
}