/* ── AstroPlanets Theme Overrides ─────────────────────────────────────────── */
:root {
  --bg:         #ffffff;
  --sidebar:    #06654A;
  --btn:        #056A4D;
  --card:       #ffffff;
  --muted:      #3b5b52;
  --text:       #1fae72;
  --login-red:  #D61018;
  --accent:     #056A4D;
  --gold:       #c9a84c;
  --golden:     #A4984B;
  --green:      #34d399;
  --radius:     10px;
}

body { background: var(--bg) !important; color: var(--text) !important; }

/* ── Header — Light golden #A4984B (do NOT revert this) ───────────────────── */
.app-header {
  background: #A4984B !important;
  border-bottom: 1px solid rgba(164,152,75,0.35) !important;
  box-shadow: 0 2px 16px rgba(164,152,75,0.25) !important;
}
.app-header h1 {
  color: #fff !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2) !important;
}
/* Notification button and other header elements: white-tinted */
.notif-btn {
  border-color: rgba(255,255,255,0.35) !important;
  background: rgba(255,255,255,0.15) !important;
}
.notif-btn:hover { background: rgba(255,255,255,0.25) !important; }
.header-search input {
  background: rgba(255,255,255,0.2) !important;
  border-color: rgba(255,255,255,0.3) !important;
  color: #fff !important;
}
.header-search input::placeholder { color: rgba(255,255,255,0.6) !important; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar { background: var(--sidebar); }
.sidebar .sidebar-nav a { color: #e6f5ef; padding: 10px 12px; border-radius: 8px; display: block; }
.sidebar .sidebar-nav a:hover { background: var(--btn); color: #fff; }
.sidebar .sidebar-nav a.active { background: var(--btn); color: #fff; }
.sidebar .sidebar-logo .logo-text p:last-child { color: #d1fae5 !important; margin: 0; font-weight: 600; }
.sidebar .sidebar-logo .logo-icon {
  background: transparent !important; border-radius: 0 !important; padding: 0 !important;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
}
.sidebar .sidebar-logo .logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 0; }
.sidebar .sidebar-logo .logo-icon .logo-emoji { font-size: 24px; line-height: 40px; }
.sidebar-user-role { color: #a7f3d0 !important; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn, button, .btn-ghost { border-radius: 8px; }
.btn.btn-primary, .btn-primary { background: linear-gradient(90deg, var(--btn), #0a8b72); color: #fff; }
.btn.btn-green, .badge-green { background: var(--green); color: #000; }
.badge-gold, .btn-gold { background: var(--gold); color: #000; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid rgba(0,0,0,0.06); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
.avatar { border-radius: 8px; }

/* ── Logout button ────────────────────────────────────────────────────────── */
.logout-btn {
  background: #ef4444; color: #ffffff !important; padding: 6px 10px;
  border-radius: 8px; display: inline-block; text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06);
}
.logout-btn:hover { background: #dc2626; color: #fff; }

/* ── Links ────────────────────────────────────────────────────────────────── */
a { color: var(--btn); }

/* ── Teacher dashboard ────────────────────────────────────────────────────── */
.teacher-page { --text: #1fae72; --muted: #2c6d56; }
.teacher-page h1, .teacher-page h2, .teacher-page h3, .teacher-page h4,
.teacher-page .stat-val { color: var(--text) !important; }

/* ── Meeting controls ─────────────────────────────────────────────────────── */
.meeting-controls { background: rgba(2,1,16,0.15) !important; border-top: 1px solid rgba(255,255,255,.03); }
.ctrl-btn { background: transparent; border: 1px solid rgba(255,255,255,.06); color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.ctrl-btn.active-accent { background: linear-gradient(90deg, var(--btn), #0a8b72); color: #fff; border-color: transparent; }

/* ── Login page — override with new cosmic split style ───────────────────── */
/* The new index.php renders its own inline styles; keep these as fallback only */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 16px; }
.login-box { width: 380px; max-width: 95%; background: var(--login-red, #ef4444); color: #fff; padding: 26px; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.login-logo { text-align: center; margin-bottom: 12px; }
.login-logo .login-logo-icon, .login-logo h1, .login-logo p { color: #fff; }
.login-box .input { background: #fff; color: #111; border: 1px solid rgba(0,0,0,0.06); padding: 10px 12px; border-radius: 8px; }
.login-box .role-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.12); padding: 8px 10px; border-radius: 8px; margin-right: 8px; }
.login-box .role-btn.active, .login-box .role-btn:hover { background: rgba(255,255,255,0.08); }
.login-box .error-msg { background: rgba(0,0,0,0.18); color: #ffe6e6; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px; }
.login-box .btn-primary { background: #fff !important; color: var(--login-red, #ef4444) !important; border: none; padding: 12px; font-weight: 600; }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 800px) { .lead { max-width: 100%; } }
@media (max-width: 420px) { .login-box { padding: 18px; } }
