:root{
    --page-bg:#9aa3af;
    --app-bg: rgba(246,248,252,.75);
    --panel: rgba(255,255,255,.78);

    --text:#0f172a;
    --muted:#6b7280;

    --line: rgba(15, 23, 42, .06);
    --line2: rgba(255,255,255,.55);

    --primary:#2f66ff;
    --primary2:#234fe0;

    --shadow: 0 18px 60px rgba(15,23,42,.14);
    --shadow-soft: 0 16px 44px rgba(15,23,42,.10);

    --radius-2xl: 28px;
    --radius-xl: 22px;
    --radius-lg: 18px;

    --blur: blur(14px);
}

body{
    background:
    radial-gradient(1200px 500px at 20% 10%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(47,102,255,.18), transparent 55%),
    radial-gradient(900px 520px at 70% 100%, rgba(255,255,255,.18), transparent 60%),
    var(--page-bg);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-shell{
    max-width: 1180px;
    margin: 34px auto;
    background: var(--app-bg);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    overflow:hidden;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: var(--blur);
}

/* Sidebar */
.sidebar{
    background: rgba(242,246,255,.65);
    border-right: 1px solid var(--line);
    min-height: 690px;
    backdrop-filter: var(--blur);
}

.brand{
    display:flex; align-items:center; gap:.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 22px 18px 18px;
}

.brand-badge{
    width:34px;height:34px;border-radius:12px;
    display:grid;place-items:center;
    background: linear-gradient(180deg, rgba(47,102,255,1), rgba(35,79,224,1));
    color:#fff;
    box-shadow: 0 12px 28px rgba(47,102,255,.22);
}

.nav-pill{
    border-radius: 16px;
    padding: 10px 12px;
    display:flex; align-items:center; gap:10px;
    color: var(--text);
    text-decoration:none;
    font-weight: 650;
    font-size: .92rem;
}
.nav-pill .bi{
    color: rgba(100,116,139,.9);
    font-size: 1.05rem;
}
.nav-pill:hover{
    background: rgba(47,102,255,.07);
}
.nav-pill.active{
    background: rgba(47,102,255,.12);
}
.nav-pill.active .bi{ color: var(--primary); }

.sidebar-footer{ margin-top:auto; padding:16px 18px 20px; }

/* Main */
.content{ padding: 18px 22px 24px; }

.topbar{
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.55);
    backdrop-filter: var(--blur);
    border-radius: 18px;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.search-pill{
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 999px;
    padding: 10px 12px;
}
.search-pill input{
    font-weight: 550;
}

.avatar{
    width: 34px; height: 34px;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 10px 22px rgba(15,23,42,.10);
    background:#e2e8f0;
}

/* Header */
h4{
    letter-spacing: -0.03em;
}

.pill-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 8px; }

.pill{
    border: 1px solid rgba(15,23,42,.06);
    background: rgba(255,255,255,.75);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 750;
    font-size: .84rem;
    color: var(--text);
    box-shadow: 0 10px 22px rgba(15,23,42,.05);
}
.pill.active{
    background: linear-gradient(180deg, rgba(47,102,255,1), rgba(35,79,224,1));
    color:#fff;
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(47,102,255,.20);
}

.btn-primary{
    background: linear-gradient(180deg, rgba(47,102,255,1), rgba(35,79,224,1));
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    padding: 10px 14px;
    box-shadow: 0 16px 34px rgba(47,102,255,.22);
}
.btn-primary:hover{ filter: brightness(.98); }

.btn-light-soft{
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 999px;
    font-weight: 800;
    padding: 10px 12px;
    box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

/* Panel */
.panel{
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--radius-xl);
    overflow:hidden;
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--blur);
}

/* Rows */
.section-label{
    font-weight: 800;
    color: var(--text);
    padding: 14px 18px 6px;
    font-size: .92rem;
    letter-spacing: -0.01em;
}
.section-sub{
    color: var(--muted);
    font-weight: 650;
    font-size: .82rem;
    margin-left: 8px;
}

.appt{
    padding: 16px 18px;
    border-top: 1px solid rgba(15,23,42,.05);
}

.appt-grid{
    display:grid;
    grid-template-columns: 210px 1fr 220px 110px;
    gap: 18px;
    align-items:center;
}
@media (max-width: 992px){
    .appt-grid{ grid-template-columns: 1fr; }
    .appt-actions{ justify-content:flex-start !important; }
}

.mini-h{
    font-size:.70rem;
    letter-spacing:.10em;
    text-transform: uppercase;
    color: rgba(107,114,128,.85);
    font-weight: 800;
    margin-bottom: 6px;
}

.time-box{ display:flex; gap: 26px; flex-wrap:wrap; }
.time{
    font-weight: 850;
    font-size: .95rem;
    letter-spacing: -0.01em;
}

.course-title{
    font-weight: 850;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}
.course-sub{
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
}

.teacher{
    display:flex; align-items:center; gap:10px;
}
.teacher .avatar{ width: 30px; height: 30px; }
.teacher .name{
    font-weight: 850;
    letter-spacing: -0.01em;
}

.show-link{
    color: rgba(47,102,255,.95);
    font-weight: 800;
    text-decoration:none;
    font-size:.9rem;
    justify-self:end;
    white-space: nowrap;
}
.show-link:hover{ text-decoration: underline; }

.expanded{
    margin-top: 12px;
    border-top: 1px dashed rgba(15,23,42,.12);
    padding-top: 12px;
    display:flex;
    align-items:flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap:wrap;
}

.meta-row{
    display:flex;
    gap: 28px;
    flex-wrap:wrap;
    align-items:flex-end;
}
.meta-item .val{
    font-weight: 750;
    font-size:.92rem;
    color: var(--text);
}
.meta-item .val a{
    color: var(--text);
    text-decoration:none;
    border-bottom: 1px solid rgba(15,23,42,.16);
}
.meta-item .val a:hover{ border-bottom-color: rgba(15,23,42,.32); }

.students{ display:flex; align-items:center; gap: 10px; }
.stack{ display:flex; align-items:center; }
.stack img{
    width: 28px; height: 28px;
    border-radius: 999px;
    object-fit:cover;
    border: 2px solid rgba(255,255,255,.92);
    box-shadow: 0 10px 22px rgba(15,23,42,.08);
    margin-left:-8px;
    background:#e2e8f0;
}
.stack img:first-child{ margin-left:0; }
.bubble{
    width: 32px; height: 32px;
    border-radius: 999px;
    display:grid; place-items:center;
    background: rgba(47,102,255,.12);
    border: 1px solid rgba(47,102,255,.18);
    color: rgba(47,102,255,.95);
    font-weight: 900;
    font-size: .82rem;
    box-shadow: 0 10px 22px rgba(47,102,255,.08);
}

.appt-actions{
    display:flex;
    gap: 10px;
    justify-content:flex-end;
    flex-wrap:wrap;
}

.btn-outline-danger, .btn-outline-primary{
    border-radius:999px;
    font-weight: 850;
    padding: 9px 14px;
    border-width: 1px;
}

.btn-outline-primary{
    border-color: rgba(47,102,255,.22);
    color: rgba(47,102,255,.95);
}
.btn-outline-primary:hover{
    background: rgba(47,102,255,.10);
    color: rgba(47,102,255,1);
    border-color: rgba(47,102,255,.24);
}

.btn-outline-danger{
    border-color: rgba(239,68,68,.22);
    color: rgba(239,68,68,.92);
}
.btn-outline-danger:hover{
    background: rgba(239,68,68,.08);
    color: rgba(239,68,68,1);
    border-color: rgba(239,68,68,.24);
}

.btn-join{
    border-radius:999px;
    font-weight: 900;
    padding: 9px 14px;
    background: linear-gradient(180deg, rgba(47,102,255,1), rgba(35,79,224,1));
    border:0;
    color:#fff;
    box-shadow: 0 16px 34px rgba(47,102,255,.22);
}