:root { --bg:#f6f4ef; --card:#fff; --ink:#24211d; --muted:#736c61; --accent:#7557d6; --line:#e4ded3; --danger:#b42318; --ok:#047857; --warn:#b45309; }
* { box-sizing:border-box; }
body { margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:var(--bg); color:var(--ink); }
a { color:var(--accent); }
button, input, select, textarea { font:inherit; }
button { border:0; border-radius:12px; padding:10px 14px; background:var(--accent); color:#fff; cursor:pointer; font-weight:700; }
button.secondary { background:#ede9fe; color:#4c1d95; }
button.ghost { background:transparent; color:var(--accent); padding:8px; }
button.danger { background:var(--danger); }
button:disabled { opacity:.55; cursor:not-allowed; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px; background:#fff; color:var(--ink); }
textarea { min-height:84px; resize:vertical; }
label { display:block; color:var(--muted); font-size:13px; margin:10px 0 6px; font-weight:650; }
.layout { display:grid; grid-template-columns:260px 1fr; min-height:100vh; }
.sidebar { background:#17151f; color:#fdfbf7; padding:22px; position:sticky; top:0; height:100vh; }
.logo { font-size:22px; font-weight:900; letter-spacing:-.03em; margin-bottom:6px; }
.subtitle { color:#bdb6ca; font-size:13px; margin-bottom:26px; }
.nav button { display:block; width:100%; text-align:left; background:transparent; color:#fdfbf7; padding:12px; margin:4px 0; border-radius:12px; font-weight:700; }
.nav button.active, .nav button:hover { background:#2a2438; }
.main { padding:28px; max-width:1280px; width:100%; margin:0 auto; }
.topbar { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:22px; }
.topbar h1 { margin:0; font-size:30px; letter-spacing:-.04em; }
.grid { display:grid; grid-template-columns:repeat(12, 1fr); gap:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:20px; padding:18px; box-shadow:0 10px 30px rgba(20,18,14,.04); }
.span-3 { grid-column:span 3; } .span-4 { grid-column:span 4; } .span-5 { grid-column:span 5; } .span-6 { grid-column:span 6; } .span-7 { grid-column:span 7; } .span-8 { grid-column:span 8; } .span-12 { grid-column:span 12; }
.card h2 { margin:0 0 12px; font-size:18px; }
.kpi { font-size:30px; font-weight:900; }
.muted { color:var(--muted); }
.pill { display:inline-flex; align-items:center; padding:5px 9px; border-radius:999px; font-size:12px; font-weight:800; background:#eee; color:#333; }
.pill.active { background:#dcfce7; color:#166534; }.pill.inactive { background:#f3f4f6; color:#374151; }.pill.suspended { background:#fee2e2; color:#991b1b; }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { text-align:left; padding:11px 9px; border-bottom:1px solid var(--line); vertical-align:top; }
.table th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.row-actions { display:flex; gap:8px; flex-wrap:wrap; }
.form-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px 14px; }
.form-grid .full { grid-column:1/-1; }
.login { min-height:100vh; display:grid; place-items:center; padding:20px; }
.login-card { width:min(520px, 100%); }
.tabs { display:flex; gap:8px; margin-bottom:12px; }
.tab { background:#eee; color:#333; } .tab.active { background:var(--accent); color:#fff; }
.alert { border:1px solid #fed7aa; background:#fff7ed; color:#9a3412; border-radius:16px; padding:12px; margin:12px 0; }
.success { border-color:#bbf7d0; background:#f0fdf4; color:#166534; }
.calendar { display:grid; grid-template-columns:repeat(7, 1fr); gap:8px; }
.day { min-height:112px; border:1px solid var(--line); border-radius:14px; padding:8px; background:#fff; }
.day strong { display:block; margin-bottom:6px; }
.event { border-left:4px solid var(--accent); background:#f5f3ff; padding:6px; border-radius:8px; margin:5px 0; font-size:12px; }
.resource-list { display:grid; gap:10px; }
.resource { border:1px solid var(--line); border-radius:14px; padding:12px; display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
@media (max-width:900px) { .layout { grid-template-columns:1fr; } .sidebar { height:auto; position:relative; } .main { padding:18px; } .span-3,.span-4,.span-5,.span-6,.span-7,.span-8 { grid-column:span 12; } .form-grid { grid-template-columns:1fr; } .calendar { grid-template-columns:1fr; } }

/* Hindustani-classical inspired professional login */
.raga-login {
  background:
    radial-gradient(circle at 20% 15%, rgba(234, 179, 8, .25), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(153, 27, 27, .18), transparent 30%),
    linear-gradient(135deg, #1a0f0b 0%, #3b160f 40%, #7c2d12 100%);
  position: relative;
  overflow: hidden;
}
.raga-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 78%);
}
.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.login-hero {
  min-height: 620px;
  border: 1px solid rgba(255, 237, 213, .22);
  border-radius: 30px;
  padding: 44px;
  color: #fff7ed;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.03)),
    radial-gradient(circle at 75% 70%, rgba(251, 191, 36, .22), transparent 34%);
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-hero::after {
  content: "♫";
  position: absolute;
  right: 44px;
  bottom: 24px;
  font-size: 180px;
  color: rgba(255, 247, 237, .08);
  line-height: 1;
}
.tanpura-lines {
  position: absolute;
  inset: 0 auto 0 30px;
  width: 110px;
  display: flex;
  gap: 18px;
  opacity: .25;
}
.tanpura-lines span {
  width: 2px;
  background: linear-gradient(to bottom, transparent, #fed7aa 12%, #fef3c7 52%, #fed7aa 88%, transparent);
}
.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(254, 243, 199, .32);
  border-radius: 999px;
  background: rgba(120, 53, 15, .45);
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.login-hero h1 {
  margin: 76px 0 12px;
  font-size: clamp(48px, 7vw, 82px);
  letter-spacing: -.07em;
  line-height: .9;
}
.hero-copy {
  max-width: 520px;
  font-size: 19px;
  color: #ffedd5;
  line-height: 1.6;
}
.raga-card {
  width: min(440px, 100%);
  padding: 18px;
  border: 1px solid rgba(254, 243, 199, .26);
  border-radius: 22px;
  background: rgba(24, 12, 8, .42);
  backdrop-filter: blur(12px);
}
.swara-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.swara-row span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(253, 230, 138, .16);
  color: #fde68a;
  font-weight: 900;
  font-size: 12px;
}
.raga-card p { margin: 0; color: #fff7ed; }
.login-panel {
  border-radius: 30px;
  padding: 42px;
  align-self: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
  border-color: rgba(255, 237, 213, .7);
}
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #7c2d12;
  background: linear-gradient(145deg, #fef3c7, #fdba74);
  font-size: 28px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 14px 28px rgba(124, 45, 18, .18);
}
.login-panel h2 {
  margin: 0 0 6px;
  font-size: 32px;
  letter-spacing: -.04em;
}
.professional-tabs {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px;
  border-radius: 16px;
  margin: 22px 0 16px;
}
.professional-tabs .tab {
  flex: 1;
  border-radius: 12px;
  background: transparent;
  color: #7c2d12;
}
.professional-tabs .tab.active {
  background: linear-gradient(135deg, #7c2d12, #b45309);
  color: #fff7ed;
  box-shadow: 0 8px 18px rgba(124, 45, 18, .22);
}
.login-form input {
  border-color: #fed7aa;
  background: #fffaf3;
}
.login-form input:focus {
  outline: 3px solid rgba(251, 191, 36, .28);
  border-color: #d97706;
}
.login-submit {
  background: linear-gradient(135deg, #7c2d12, #b45309);
  box-shadow: 0 14px 24px rgba(124, 45, 18, .22);
}
.login-footnote {
  margin: 18px 0 0;
  color: #78716c;
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width:900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { min-height: 360px; padding: 28px; }
  .login-panel { padding: 28px; }
}
.hidden { display: none !important; }
.record-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.resource audio { display: block; width: min(420px, 100%); margin-top: 8px; }
.resource-list { display: grid; gap: 12px; }
.quickbox { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display:grid; gap:8px; }
.quickbox b { color:#fff7ed; font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
button.small, .small { padding:7px 10px; border-radius:10px; font-size:12px; }
.button-stack { display:flex; flex-direction:column; gap:8px; }
.toolbar { display:flex; gap:10px; align-items:end; flex-wrap:wrap; margin-bottom:16px; }
.toolbar select { max-width:260px; }
.student-head { display:flex; justify-content:space-between; gap:16px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:20px; padding:18px; margin-bottom:14px; }
.student-head h2 { margin:0 0 4px; }
.row-tabs { margin: 0 0 16px; overflow:auto; }
.row-tabs .tab { white-space:nowrap; }
.split-title { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.checkrow { display:flex; align-items:center; gap:8px; margin:8px 0; color:var(--ink); font-size:14px; }
.checkrow input { width:auto; }
.danger { color:var(--danger); font-weight:800; }
.pill.scheduled { background:#dbeafe; color:#1e40af; }
.pill.completed { background:#dcfce7; color:#166534; }
.pill.cancelled { background:#f3f4f6; color:#374151; }
.pill.no_show { background:#fee2e2; color:#991b1b; }
pre { white-space:pre-wrap; background:#17151f; color:#fdfbf7; border-radius:14px; padding:14px; overflow:auto; }
@media (max-width:700px) { .topbar, .student-head, .split-title { align-items:stretch; flex-direction:column; } }
