
:root{
  --bg:#0f172a;
  --panel:#111827;
  --card:#0b1220;
  --muted:#9ca3af;
  --text:#e5e7eb;
  --accent:#22c55e;
  --accent-2:#06b6d4;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  color:var(--text); background: radial-gradient(1200px 600px at 10% -10%, #1f2937, transparent), var(--bg);
  display:flex; flex-direction:column;
}
.app-header{
  display:flex; align-items:center; justify-content:center;
  padding:18px 16px; position:sticky; top:0; z-index:10;
  background:linear-gradient(180deg, rgba(17,24,39,.9), rgba(17,24,39,.6) 60%, transparent);
  backdrop-filter: blur(6px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:42px; height:42px; border-radius:12px;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  display:grid; place-items:center; color:#00110a; font-weight:900;
  box-shadow: var(--shadow);
}
.title h1{margin:0; font-size:1.25rem}
.title p{margin:2px 0 0; color:var(--muted); font-size:.9rem}
.view{width:100%; max-width:1100px; margin:28px auto; padding:0 16px;}
.hidden{display:none}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius);
  padding:20px; box-shadow: var(--shadow);
}
.max-w{max-width:520px; margin:40px auto;}
h2{margin:0 0 14px}
label{display:block; margin:8px 0 6px;}
input{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.12);
  background:#0a0f1a; color:var(--text); outline:none;
}
input:focus{border-color:var(--accent)}
.btn{
  margin-top:14px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 16px; border-radius:12px; border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(135deg, var(--accent), var(--accent-2)); color:#052a1e; font-weight:700;
  cursor:pointer; box-shadow: var(--shadow);
}
.btn-light{ background:transparent; color:var(--text); }
.btn:hover{filter:brightness(1.03)}
.section-head{display:flex; align-items:center; justify-content:space-between; gap:16px; margin:8px 0 18px;}
.breadcrumb .link{color:var(--muted); text-decoration:none}
.breadcrumb .link:hover{color:#fff}
.grid{ display:grid; gap:16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.subject-card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px; padding:18px; cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display:flex; flex-direction:column; justify-content:space-between; min-height:120px;
}
.subject-card:hover{transform: translateY(-4px); border-color: rgba(255,255,255,.18);}
.subject-card h3{margin:0 0 6px}
.subject-card p{margin:0; color:var(--muted); font-size:.9rem}
.list{list-style:none; padding:0; margin:0}
.list li{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 0; border-bottom:1px dashed rgba(255,255,255,.08)
}
.list li:last-child{border-bottom:none}
.list .meta{color:var(--muted); font-size:.9rem}
.actions-row{display:flex; gap:10px}
a.btn-link{
  text-decoration:none; padding:8px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.14);
  color:var(--text);
}
a.btn-link:hover{border-color:#fff}
.app-footer{
  margin-top:auto;
  display:flex; align-items:center; justify-content:center; gap:10px;
  padding:18px 12px; color:var(--muted); border-top:1px solid rgba(255,255,255,.06)
}
.sep{opacity:.6}
.small{font-size:.9rem}
.muted{color:var(--muted)}


/* Colorful gradients for subject cards */
.subject-card.g1{ background:linear-gradient(135deg, #34d399, #06b6d4); }
.subject-card.g2{ background:linear-gradient(135deg, #a78bfa, #60a5fa); }
.subject-card.g3{ background:linear-gradient(135deg, #f472b6, #f59e0b); }
.subject-card.g4{ background:linear-gradient(135deg, #22d3ee, #10b981); }
.subject-card.g5{ background:linear-gradient(135deg, #f87171, #fb923c); }
.subject-card.g6{ background:linear-gradient(135deg, #4ade80, #22c55e); }
.subject-card.g7{ background:linear-gradient(135deg, #fdba74, #f97316); }
.subject-card.g8{ background:linear-gradient(135deg, #93c5fd, #6366f1); }

.subject-card{ color:#0a0a0a; }
.subject-card h3{ color:#0a0a0a; font-weight:800; }
.subject-card p{ color:#111827; font-weight:600; opacity:.9 }
.subject-card{ border:0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
