@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

/* Base layout */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme-sunny {
  --bg: #fef9c3;
  --bg-alt: #e0f2fe;
  --accent: #f97316;
  --accent-soft: #ffedd5;
  --text: #1e293b;
}

.theme-space {
  --bg: radial-gradient(circle at top, #0b1120 0, #020617 40%, #000000 100%);
  --bg-alt: #020617;
  --accent: #facc15;
  --accent-soft: #1d293b;
  --text: #e5e7eb;
}

.theme-festival {
  --bg: #fdf2f8;
  --bg-alt: #ecfeff;
  --accent: #ec4899;
  --accent-soft: #f9a8d4;
  --text: #111827;
}

.theme-ocean {
  --bg: linear-gradient(135deg, #e0f2fe 0%, #cffafe 50%, #a5f3fc 100%);
  --bg-alt: #f0fdfa;
  --accent: #0891b2;
  --accent-soft: #a5f3fc;
  --text: #0f172a;
}

.theme-forest {
  --bg: linear-gradient(160deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
  --bg-alt: #f0fdf4;
  --accent: #15803d;
  --accent-soft: #bbf7d0;
  --text: #14532d;
}

.theme-sunset {
  --bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
  --bg-alt: #fff1f2;
  --accent: #ea580c;
  --accent-soft: #fed7aa;
  --text: #431407;
}

.theme-lavender {
  --bg: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #ddd6fe 100%);
  --bg-alt: #faf5ff;
  --accent: #7c3aed;
  --accent-soft: #ddd6fe;
  --text: #3b0764;
}

.theme-candy {
  --bg: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #f9a8d4 100%);
  --bg-alt: #fdf2f8;
  --accent: #db2777;
  --accent-soft: #fbcfe8;
  --text: #831843;
}

.app-wrapper {
  background: var(--bg);
  color: var(--text);
}

.card {
  background-color: var(--bg-alt);
}

.btn-primary {
  background-color: var(--accent);
  color: #0f172a;
}

.badge-soft {
  background-color: var(--accent-soft);
  color: var(--text);
}

/* Improve readability in space theme: override dark utility text colors */
.theme-space .card,
.theme-space .card * {
  color: #e5e7eb;
}

.theme-space .card h1,
.theme-space .card h2,
.theme-space .card h3,
.theme-space .card p,
.theme-space .card span {
  color: #e5e7eb;
}

.theme-space .card input,
.theme-space .card select,
.theme-space .card textarea {
  background-color: #020617;
  color: #e5e7eb;
  border-color: #334155;
}

.theme-space .card input::placeholder,
.theme-space .card textarea::placeholder {
  color: #64748b;
}

.theme-space .badge-soft {
  background-color: #1f2937;
  color: #e5e7eb;
}

.theme-space .btn-primary {
  background-color: #facc15;
  color: #0f172a;
}

/* Light panels inside space theme (parent dashboard widgets) */
.theme-space .bg-white\/60,
.theme-space .bg-white\/70,
.theme-space .bg-white\/80,
.theme-space .bg-white\/90 {
  background-color: rgba(15, 23, 42, 0.96);
  border-color: #1e293b;
}

.theme-space .bg-white\/60 *,
.theme-space .bg-white\/70 *,
.theme-space .bg-white\/80 *,
.theme-space .bg-white\/90 * {
  color: #e5e7eb;
}

.theme-space .bg-white\/90 .text-slate-900,
.theme-space .bg-white\/90 .text-sky-900,
.theme-space .bg-white\/90 .text-amber-900 {
  color: #e5e7eb;
}

.theme-space .bg-amber-200,
.theme-space .bg-amber-100 {
  background-color: #1f2937;
  color: #facc15;
}

/* Parent "Tasks to review" panel in space theme */
.theme-space .review-panel {
  background: radial-gradient(circle at top, #1e293b 0, #020617 60%, #000000 100%);
  border-color: #0f172a;
}

.theme-space .review-panel h3,
.theme-space .review-panel p,
.theme-space .review-panel span,
.theme-space .review-panel button {
  color: #e5e7eb;
}

.theme-space .review-panel .bg-amber-200,
.theme-space .review-panel .bg-amber-100 {
  background-color: #1f2937;
  color: #facc15;
}

/* Role-specific background illustrations */
.bg-role-student {
  background-image: url("/images/role-student.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-role-teacher {
  background-image: url("/images/role-teacher.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-role-admin {
  background-image: url("/images/role-admin.svg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-role-parent {
  background-image: none;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ========== ZEVARAS (zevaras.in) — default product theme ========== */
.theme-zevaras .app-wrapper {
  --bg: linear-gradient(180deg, #09090b 0%, #0c0c0f 45%, #09090b 100%);
  --bg-alt: #18181b;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --text: #fafafa;
  font-family: "Inter", system-ui, sans-serif;
}

html.theme-zevaras h1,
html.theme-zevaras h2,
html.theme-zevaras h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

html.theme-zevaras body.bg-role-student,
html.theme-zevaras body.bg-role-teacher,
html.theme-zevaras body.bg-role-admin,
html.theme-zevaras body.bg-role-parent {
  background-image: none !important;
  background: linear-gradient(180deg, #09090b 0%, #111113 100%) !important;
}

.theme-zevaras .card,
.theme-zevaras .rounded-xl,
.theme-zevaras .rounded-2xl {
  border-color: #27272a !important;
}

.theme-zevaras .bg-sky-50,
.theme-zevaras .bg-indigo-50,
.theme-zevaras .bg-violet-50,
.theme-zevaras .bg-emerald-50,
.theme-zevaras .bg-amber-50 {
  background-color: #18181b !important;
  color: #e4e4e7 !important;
}

.theme-zevaras .border-sky-100,
.theme-zevaras .border-indigo-100,
.theme-zevaras .border-violet-100,
.theme-zevaras .border-emerald-100,
.theme-zevaras .border-amber-100,
.theme-zevaras .border-slate-200 {
  border-color: #27272a !important;
}

.theme-zevaras .text-slate-900,
.theme-zevaras .text-slate-800,
.theme-zevaras .text-sky-800,
.theme-zevaras .text-indigo-800 {
  color: #fafafa !important;
}

.theme-zevaras .text-slate-600,
.theme-zevaras .text-slate-500 {
  color: #a1a1aa !important;
}

.theme-zevaras .btn-primary {
  background-color: #f97316 !important;
  color: #fff !important;
  font-weight: 600;
}

.theme-zevaras .btn-primary:hover {
  background-color: #ea580c !important;
}

.theme-zevaras .badge-soft {
  background-color: #27272a !important;
  color: #e4e4e7 !important;
  border: 1px solid #3f3f46;
}

.theme-zevaras .bg-white\/60,
.theme-zevaras .bg-white\/70,
.theme-zevaras .bg-white\/80,
.theme-zevaras .bg-white\/90 {
  background-color: #18181b !important;
}

.theme-zevaras .bg-white\/60 *,
.theme-zevaras .bg-white\/80 * {
  color: #e4e4e7;
}

.theme-zevaras input,
.theme-zevaras select,
.theme-zevaras textarea {
  background-color: #09090b !important;
  color: #fafafa !important;
  border-color: #3f3f46 !important;
}

.theme-zevaras .review-panel {
  background: linear-gradient(160deg, #18181b 0%, #111113 100%) !important;
  border-color: #27272a !important;
}

.theme-zevaras .review-panel h3,
.theme-zevaras .review-panel p,
.theme-zevaras .review-panel span {
  color: #e4e4e7 !important;
}

.theme-zevaras .text-sky-600,
.theme-zevaras .text-sky-700 {
  color: #fb923c !important;
}

.theme-zevaras .bg-emerald-500 {
  background-color: #f97316 !important;
  color: #fff !important;
}

.theme-zevaras .hover\:bg-emerald-50\/70:hover,
.theme-zevaras .hover\:bg-emerald-50\/60:hover {
  background-color: rgba(249, 115, 22, 0.08) !important;
}

.theme-zevaras .text-emerald-700,
.theme-zevaras .text-emerald-800,
.theme-zevaras .text-emerald-900 {
  color: #fdba74 !important;
}

.theme-zevaras .border-emerald-100 {
  border-color: rgba(249, 115, 22, 0.25) !important;
}

.theme-zevaras .bg-emerald-100 {
  background-color: rgba(249, 115, 22, 0.15) !important;
}

.theme-zevaras .text-red-600 {
  color: #f87171 !important;
}

.theme-zevaras .border-amber-300,
.theme-zevaras .bg-amber-50 {
  border-color: #3f3f46 !important;
  background-color: #1c1917 !important;
}

.theme-zevaras .text-amber-900,
.theme-zevaras .text-amber-800 {
  color: #fde68a !important;
}

