/* ==========================================================================
   SI-RASA (Sistem Ruang Aman Sahabat Anak)
   Unified Design System & Comprehensive Web Application Stylesheet
   ========================================================================== */

:root {
  /* Brand Color Palette - Professional Mental Health & School */
  --bg-primary: #0a0f1d;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-solid: #151f32;
  --bg-card-hover: #1e2c45;
  --bg-input: #1a2438;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;

  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.12);

  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-soft: rgba(16, 185, 129, 0.12);

  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-soft: rgba(6, 182, 212, 0.12);

  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-soft: rgba(139, 92, 246, 0.12);

  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-soft: rgba(245, 158, 11, 0.12);

  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --rose-soft: rgba(244, 63, 94, 0.12);

  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-soft: rgba(239, 68, 68, 0.12);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Radii & Transitions */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);
}

/* Reset & Global Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #172554 0%, #0a0f1d 70%);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Helper Utilities */
.text-center { text-align: center; }
.text-blue { color: #60a5fa !important; }
.text-green { color: #34d399 !important; }
.text-cyan { color: #38bdf8 !important; }
.text-amber { color: #fbbf24 !important; }
.text-purple { color: #c084fc !important; }
.text-rose { color: #fb7185 !important; }
.text-indigo { color: #818cf8 !important; }
.text-danger { color: #f87171 !important; }
.text-muted { color: var(--text-muted) !important; }
.text-dim { color: var(--text-dim) !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 14px; }
.mb-4 { margin-bottom: 20px; }
.badge-pill {
  display: inline-block;
  padding: 6px 14px;
  background: var(--blue-soft);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.badge-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Button Component System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), #1d4ed8);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-portal {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}
.btn-portal:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-xs);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}
.btn-block {
  width: 100%;
}
.btn-danger {
  background: var(--red-600);
  color: #fff;
}
.btn-danger:hover {
  background: var(--red-500);
}
.btn-success {
  background: var(--emerald-600);
  color: #fff;
}
.btn-success:hover {
  background: var(--emerald-500);
}

.btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}
.btn-sub {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 500;
}
.btn-main {
  font-size: 14.5px;
  font-weight: 700;
}

/* View Sections Switching */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.view-section.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   VIEW 1: LANDING PAGE HEADER & HERO
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: var(--transition-fast);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  cursor: pointer;
}

.app-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: #ffffff;
}

.btn-apk-nav {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  text-decoration: none;
  border: 1px solid var(--border-color);
}
.btn-apk-nav:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-portal-nav {
  background: var(--blue-600);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.btn-portal-nav:hover {
  background: var(--blue-700);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.text-highlight {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 16.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 45px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border-color);
  padding: 16px 22px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.trust-item strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
}

.trust-item span {
  font-size: 11.5px;
  color: var(--text-dim);
}

.trust-sep {
  width: 1px;
  height: 32px;
  background: var(--border-color);
}

/* Hero Right Card Preview */
.hero-card-preview {
  background: linear-gradient(145deg, #182338, #0e1626);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  position: relative;
}

.preview-device {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.preview-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.preview-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  display: block;
}

.preview-status {
  font-size: 11.5px;
  color: var(--emerald-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.preview-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}
.preview-feature-card:hover {
  transform: translateX(4px);
  background: rgba(15, 23, 42, 0.9);
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feat-blue .feat-icon { background: rgba(37, 99, 235, 0.2); color: #60a5fa; }
.feat-purple .feat-icon { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.feat-emerald .feat-icon { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.feat-info strong {
  display: block;
  font-size: 14px;
  color: #fff;
}
.feat-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.preview-footer {
  padding-top: 10px;
}
.preview-btn {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.preview-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Features Grid */
.section {
  padding: 90px 0;
}
.section-dark {
  background: #080c18;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 55px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition-fast);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-card);
}

.f-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.bg-blue { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.bg-cyan { background: rgba(6, 182, 212, 0.15); color: #38bdf8; }
.bg-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.bg-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.bg-purple { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.bg-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.bg-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.bg-teal { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.bg-navy { background: rgba(30, 41, 59, 0.5); color: #94a3b8; }
.bg-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.bg-green { background: #10b981; color: #fff; }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Download APK Box */
.download-box {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 50px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

.download-content h2 {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.download-content p {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.download-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: #93c5fd;
  margin-bottom: 30px;
}
.download-specs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-download-large {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px;
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-main);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition-fast);
}
.btn-download-large i {
  font-size: 30px;
  color: #10b981;
}
.btn-download-large:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
}
.d-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.d-main {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.download-image-wrap {
  text-align: center;
}
.download-hero-img {
  max-width: 220px;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.5));
}

/* Footer */
.footer {
  background: #060912;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 360px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-dim);
}


/* ==========================================================================
   VIEW 2: WEB APPLICATION WORKSPACE & DASHBOARD STYLES
   ========================================================================== */
.app-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sidebar-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.app-header-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.app-header-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.app-role-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-radius: 20px;
  margin-left: 6px;
  font-weight: 600;
}

.school-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-muted);
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sos-top {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-sos-top:hover {
  background: rgba(239, 68, 68, 0.3);
}

.user-profile-menu {
  position: relative;
}
.user-avatar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
}
.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.user-display-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 45px;
  background: #131c30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 150;
}
.profile-dropdown-content.show {
  display: block;
}
.profile-drop-header {
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--border-color);
}
.profile-drop-header strong {
  display: block;
  font-size: 14px;
  color: #fff;
}
.profile-drop-header small {
  font-size: 12px;
  color: var(--text-dim);
}
.profile-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  transition: var(--transition-fast);
}
.profile-dropdown-content a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* Workspace Layout */
.app-workspace {
  display: flex;
  min-height: calc(100vh - 60px);
}

.app-sidebar {
  width: 260px;
  background: #0c1222;
  border-right: 1px solid var(--border-color);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.sidebar-menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: var(--transition-fast);
}
.nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.nav-item.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(37, 99, 235, 0.1));
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border-color);
}
.sidebar-app-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-dim);
}
.status-indicator-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald-500);
  font-weight: 600;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald-500);
  border-radius: 50%;
}

.app-main-content {
  flex: 1;
  padding: 24px 30px;
  overflow-y: auto;
  max-width: 1200px;
  margin: 0 auto;
}

.app-tab-pane {
  display: none;
  animation: fadeInPane 0.25s ease;
}
.app-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.pane-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pane-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   TAB 1: BERANDA SISWA
   ========================================================================== */
.welcome-banner {
  background: linear-gradient(135deg, #1e3a8a, #172554);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 26px;
}

.welcome-date {
  font-size: 13px;
  color: #93c5fd;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.welcome-text h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.welcome-text p {
  font-size: 15px;
  color: #cbd5e1;
  max-width: 700px;
  margin-bottom: 22px;
}

.quick-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-quick-primary {
  padding: 10px 18px;
  background: #ffffff;
  color: #1e3a8a;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.btn-quick-secondary {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.summary-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.summary-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.s-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.s-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}
.s-val {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.section-subheading {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.app-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.app-module-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.app-module-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-card);
}
.mod-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}
.app-module-card h4 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.app-module-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}
.mod-link {
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   TAB 2: DASS-21 STYLES
   ========================================================================== */
.dass-form-card, .dass-result-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.dass-instruction-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #93c5fd;
  margin-bottom: 22px;
}

.dass-progress-wrap {
  margin-bottom: 26px;
}
.dass-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s ease;
}

.dass-questions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.dass-q-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.dass-q-header {
  font-size: 14.5px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 12px;
}
.dass-q-header span.q-num {
  color: #60a5fa;
  margin-right: 6px;
}

.dass-options-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dass-opt-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.dass-opt-label:hover {
  background: rgba(255, 255, 255, 0.08);
}
.dass-opt-label.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
}
.dass-opt-label input {
  display: none;
}
.opt-score {
  font-size: 16px;
  font-weight: 800;
}
.opt-text {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.dass-submit-wrap {
  text-align: center;
  padding-top: 10px;
}

/* DASS Result Cards */
.result-header-banner {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}
.res-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.result-header-banner h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}
.result-header-banner p {
  font-size: 13px;
  color: var(--text-dim);
}

.scores-triplet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 26px;
}

.score-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.sc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.sc-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0;
}
.sc-status-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  margin-bottom: 10px;
}
.sc-desc {
  font-size: 12px;
  color: var(--text-dim);
}

.result-recommendation-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}
.result-recommendation-box h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
}
.result-recommendation-box p {
  font-size: 14px;
  color: #f1f5f9;
  line-height: 1.6;
}

.result-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}


/* ==========================================================================
   TAB 3: FACE SCAN AI
   ========================================================================== */
.facescan-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.camera-card, .scan-result-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.camera-feed-box {
  position: relative;
  width: 100%;
  height: 320px;
  background: #090e1a;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

#webcamVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.scan-box {
  width: 180px;
  height: 220px;
  border: 2px dashed #38bdf8;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
  animation: scanMove 2.5s infinite linear;
}

@keyframes scanMove {
  0% { top: 0; }
  50% { top: 100%; }
  100% { top: 0; }
}

.scan-status-text {
  font-size: 13px;
  color: #fff;
  margin-top: 14px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 12px;
  border-radius: 20px;
}

.camera-ctrls {
  display: flex;
  gap: 12px;
}

.emotion-detected-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
}

.emotion-emoji {
  font-size: 40px;
}

.emotion-details strong {
  display: block;
  font-size: 16px;
  color: #fff;
}
.emotion-details span {
  font-size: 12.5px;
  color: #38bdf8;
}

.metric-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.metric-row span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.m-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.m-fill {
  height: 100%;
  border-radius: 10px;
}

.scan-note-box {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #93c5fd;
}


/* ==========================================================================
   TAB 4: MOOD JOURNAL
   ========================================================================== */
.mood-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mood-entry-card, .mood-history-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.mood-selector-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.mood-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.mood-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.mood-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}
.m-emoji {
  font-size: 28px;
  margin-bottom: 6px;
}
.m-txt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.mood-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 380px;
  overflow-y: auto;
}

.mood-hist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
}
.mh-emoji {
  font-size: 26px;
}
.mh-content strong {
  font-size: 13.5px;
  color: #fff;
  display: block;
}
.mh-content small {
  font-size: 11.5px;
  color: var(--text-dim);
}
.mh-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}


/* ==========================================================================
   TAB 5: CHATBOT AI
   ========================================================================== */
.chat-workspace-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  height: 600px;
  overflow: hidden;
}

.chat-pane-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.6);
}

.chat-bot-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bot-avatar-wrap {
  position: relative;
}
.bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--emerald-500);
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.bot-status-sub {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}

.chat-messages-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.msg-row {
  display: flex;
  gap: 12px;
  max-width: 80%;
}
.msg-bot {
  align-self: flex-start;
}
.msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}
.msg-bot .msg-bubble {
  background: #1f2c47;
  color: #f8fafc;
  border-top-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.msg-user .msg-bubble {
  background: var(--blue-600);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.msg-time {
  display: block;
  font-size: 10.5px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

.chat-chips-row {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--border-color);
}
.chip-btn {
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.chip-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: #3b82f6;
}

.chat-input-bar {
  padding: 12px 16px;
  background: #121a2d;
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 10px 18px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}
.chat-input:focus {
  border-color: var(--blue-500);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-600);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
}
.chat-send-btn:hover {
  background: var(--blue-700);
  transform: scale(1.05);
}


/* ==========================================================================
   TAB 6: RELAKSASI & PERNAPASAN 4-7-8
   ========================================================================== */
.relaxation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.breathing-card, .ambient-sound-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.breathing-circle-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  height: 240px;
}

.breathing-circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(37, 99, 235, 0.2) 70%);
  border: 3px solid #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s ease-in-out;
}

.breathing-circle.inhale {
  transform: scale(1.45);
  border-color: #3b82f6;
  box-shadow: 0 0 45px rgba(59, 130, 246, 0.6);
}

.breathing-circle.hold {
  transform: scale(1.45);
  border-color: #f59e0b;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.6);
}

.breathing-circle.exhale {
  transform: scale(1.0);
  border-color: #8b5cf6;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.breath-inner-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.breath-action-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.breath-counter {
  font-size: 28px;
  font-weight: 800;
  color: #93c5fd;
}

.breath-controls {
  text-align: center;
  margin-bottom: 24px;
}

.breath-steps-explanation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.b-step strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.b-step span {
  font-size: 11.5px;
  color: var(--text-dim);
}

.sound-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.sound-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.sound-item:hover {
  background: rgba(15, 23, 42, 0.9);
}
.sound-item.playing {
  border-color: var(--blue-500);
  background: rgba(37, 99, 235, 0.15);
}

.snd-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.snd-info strong {
  display: block;
  font-size: 14px;
  color: #fff;
}
.snd-info small {
  font-size: 12px;
  color: var(--text-dim);
}

.snd-play-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}


/* ==========================================================================
   TAB 7: MINI GAME ZEN
   ========================================================================== */
.game-container-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.game-stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
}

.badge-count {
  font-size: 18px;
  font-weight: 800;
  color: #f43f5e;
}

.bubble-wrap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
  gap: 12px;
  padding: 10px;
}

.zen-bubble {
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #60a5fa 0%, #1e40af 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.zen-bubble:active {
  transform: scale(0.85);
}
.zen-bubble.popped {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}


/* ==========================================================================
   TAB 8: PENGADUAN & FORMS
   ========================================================================== */
.complaint-grid, .counseling-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.complaint-form-card, .complaint-list-card, .counselor-select-card, .booking-form-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  outline: none;
}
.form-control:focus {
  border-color: var(--blue-500);
}

.form-row {
  display: flex;
  gap: 12px;
}
.col-half {
  flex: 1;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox-label input {
  margin-top: 3px;
}

.complaint-items-container, .counselors-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.complaint-item-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}
.comp-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.comp-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.badge-status-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.badge-status-process { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.badge-status-done { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.complaint-item-card h4 {
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 4px;
}
.complaint-item-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.comp-reply-box {
  margin-top: 10px;
  padding: 10px;
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  border-radius: 4px;
  font-size: 12.5px;
  color: #a7f3d0;
}

/* Counselor Selection */
.counselor-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.counselor-card:hover {
  background: rgba(15, 23, 42, 0.9);
}
.counselor-card.selected {
  border-color: #0d9488;
  background: rgba(13, 148, 136, 0.15);
}

.counselor-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.counselor-info strong {
  display: block;
  font-size: 14.5px;
  color: #fff;
}
.counselor-info span {
  font-size: 12px;
  color: var(--text-dim);
}
.c-slot-avail {
  font-size: 11.5px;
  color: #2dd4bf;
  margin-top: 4px;
  display: block;
}

.dates-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  padding: 8px 4px;
  cursor: pointer;
  color: var(--text-muted);
}
.date-btn.active {
  background: rgba(13, 148, 136, 0.2);
  border-color: #14b8a6;
  color: #2dd4bf;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.time-btn {
  padding: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-muted);
}
.time-btn.active {
  background: rgba(13, 148, 136, 0.2);
  border-color: #14b8a6;
  color: #2dd4bf;
}


/* ==========================================================================
   TAB BK: DASHBOARD GURU BK STYLES
   ========================================================================== */
.bk-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.bk-stat-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}
.bk-stat-title {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
}
.bk-stat-val {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.bk-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bk-section-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.high-risk-students-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.hr-student-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
}
.hr-name strong {
  display: block;
  font-size: 13.5px;
  color: #fca5a5;
}
.hr-name small {
  font-size: 11.5px;
  color: var(--text-dim);
}

.distribution-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.dist-row span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dist-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}
.dist-fill {
  height: 100%;
  border-radius: 10px;
}

/* Data Tables */
.students-table-card, .history-section-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.data-table th {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}
.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.mindfulness-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-info {
  padding: 14px;
}
.video-info h4 {
  font-size: 14.5px;
  color: #fff;
  margin-bottom: 4px;
}
.video-info p {
  font-size: 12.5px;
  color: var(--text-dim);
}


/* ==========================================================================
   MODALS (AUTHENTICATION, CRISIS, & ADD VIDEO)
   ========================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show {
  display: flex;
}

.modal-box {
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  max-height: 90vh;
  overflow-y: auto;
  animation: popModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popModal {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: #fff;
}

.modal-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 10px;
}

.auth-tabs-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin: 18px 0;
}
.auth-tab-btn {
  flex: 1;
  padding: 9px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition-fast);
}
.auth-tab-btn.active {
  background: var(--blue-600);
  color: #ffffff;
}

.role-switch-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.role-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.role-chip input {
  display: none;
}
.role-chip.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.password-input-wrap {
  position: relative;
}
.eye-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
}

.auth-alert {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 13px;
  margin-bottom: 14px;
}

.guest-quick-row {
  margin-top: 12px;
}

/* Crisis Modal */
.crisis-head {
  text-align: center;
  margin-bottom: 22px;
}
.crisis-pulse-icon {
  font-size: 42px;
  color: #ef4444;
  margin-bottom: 10px;
  animation: pulseCrisis 1.5s infinite;
}
@keyframes pulseCrisis {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.hotlines-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.hotline-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.h-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.h-info strong {
  display: block;
  font-size: 14px;
  color: #fff;
}
.h-info span {
  font-size: 12px;
  color: var(--text-dim);
}
.hotline-card .btn {
  margin-left: auto;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 15, 29, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  z-index: 120;
  padding: 6px 0;
  justify-content: space-around;
}
.mob-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
}
.mob-nav-btn i {
  font-size: 18px;
}
.mob-nav-btn.active {
  color: #60a5fa;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin: 0 auto 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .download-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 35px 24px;
  }
  .download-specs, .download-actions {
    justify-content: center;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    z-index: 110;
    width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  }
  .app-sidebar.show {
    display: flex;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .app-main-content {
    padding: 18px 16px 80px;
  }
  .scores-triplet-grid, .facescan-grid, .mood-page-grid, .relaxation-grid, .complaint-grid, .counseling-grid, .bk-sections-grid {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-heading {
    font-size: 30px;
  }
  .section-title {
    font-size: 26px;
  }
  .dass-options-row {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  .nav-links.show {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
}
