/*
  Placeholder brand palette — replace once the exact SS University
  colors/typography are pulled from https://ssuniversity.ac.in/
*/
:root {
    --ssu-primary: #0b3d91;
    --ssu-primary-dark: #082b66;
    --ssu-primary-light: #eef3fc;
    --ssu-accent: #d4a017;
    --ssu-bg: #f4f6fb;
    --ssu-text: #1c1c1c;
    --ssu-muted: #6b7280;
    --ssu-border: #e5e9f2;
    --ssu-sidebar-bg: #0d2b5c;
    --ssu-sidebar-text: #c7d3ec;
    --ssu-sidebar-active: #ffffff;
    --ssu-sidebar-width: 250px;
}

body {
    background-color: var(--ssu-bg);
    color: var(--ssu-text);
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
}

body.ssu-portal-bg { background-color: var(--ssu-bg); }

.ssu-brand-heading { color: var(--ssu-primary); font-weight: 700; }

.ssu-card { border: none; border-radius: 14px; }

.ssu-btn-primary {
    background-color: var(--ssu-primary);
    border-color: var(--ssu-primary);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-weight: 600;
    color: #fff;
}
.ssu-btn-primary:hover { background-color: var(--ssu-primary-dark); border-color: var(--ssu-primary-dark); color: #fff; }

/* ------------------------------------------------------------------
   Sidebar shell layout — used by both admin and student panels.
   Structure:
   <div class="ssu-shell">
     <aside class="ssu-sidebar">...</aside>
     <div class="ssu-main">
       <header class="ssu-topbar">...</header>
       <main class="ssu-content">...</main>
     </div>
   </div>
------------------------------------------------------------------- */
.ssu-shell {
    display: flex;
    min-height: 100vh;
}

.ssu-sidebar {
    width: var(--ssu-sidebar-width);
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--ssu-sidebar-bg) 0%, #0a2249 100%);
    color: var(--ssu-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1030;
    transition: transform 0.25s ease;
}

.ssu-sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ssu-sidebar-brand small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ssu-sidebar-text); margin-top: 2px; }

.ssu-sidebar-nav { flex: 1; overflow-y: auto; padding: 0.75rem 0.6rem; }

.ssu-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    color: var(--ssu-sidebar-text);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.ssu-nav-link:hover { background-color: rgba(255,255,255,0.08); color: #fff; }
.ssu-nav-link.active { background-color: rgba(255,255,255,0.14); color: var(--ssu-sidebar-active); font-weight: 600; }
.ssu-nav-link .icon { width: 18px; text-align: center; font-size: 0.95rem; }

.ssu-sidebar-footer { padding: 0.9rem; border-top: 1px solid rgba(255,255,255,0.08); }
.ssu-sidebar-footer form button { width: 100%; }

.ssu-main {
    flex: 1;
    margin-left: var(--ssu-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.ssu-topbar {
    background: #fff;
    border-bottom: 1px solid var(--ssu-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}
.ssu-topbar-title { font-weight: 700; color: var(--ssu-primary); font-size: 1.05rem; margin: 0; }
.ssu-sidebar-toggle { display: none; background: none; border: none; font-size: 1.3rem; color: var(--ssu-primary); }

.ssu-content { padding: 1.5rem; flex: 1; }

/* Right-hand info panel used on dashboards */
.ssu-right-panel {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid var(--ssu-border);
}
.ssu-right-panel h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ssu-muted); margin-bottom: 1rem; }

.ssu-timeline { list-style: none; padding: 0; margin: 0; }
.ssu-timeline li { position: relative; padding-left: 1.5rem; padding-bottom: 1.1rem; font-size: 0.85rem; }
.ssu-timeline li::before { content: ''; position: absolute; left: 0; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ssu-primary); }
.ssu-timeline li::after { content: ''; position: absolute; left: 4px; top: 13px; bottom: 0; width: 2px; background: var(--ssu-border); }
.ssu-timeline li:last-child::after { display: none; }
.ssu-timeline li .t-date { display: block; color: var(--ssu-muted); font-size: 0.75rem; }

/* Stat cards */
.ssu-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--ssu-border);
    height: 100%;
}
.ssu-stat-card .stat-label { color: var(--ssu-muted); font-size: 0.8rem; }
.ssu-stat-card .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--ssu-primary); }
.ssu-stat-card .stat-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ssu-primary-light); color: var(--ssu-primary); font-size: 1.1rem;
}

@media (max-width: 900px) {
    .ssu-sidebar { transform: translateX(-100%); }
    .ssu-sidebar.ssu-sidebar-open { transform: translateX(0); }
    .ssu-main { margin-left: 0; }
    .ssu-sidebar-toggle { display: inline-block; }
}

/* Progress stepper (student application steps) */
.ssu-stepper { display: flex; justify-content: space-between; margin-bottom: 2rem; }
.ssu-stepper .step { flex: 1; text-align: center; font-size: 0.85rem; color: #9aa0ab; position: relative; }
.ssu-stepper .step.active { color: var(--ssu-primary); font-weight: 600; }
.ssu-stepper .step.done { color: #2e7d32; }
@media (max-width: 576px) { .ssu-stepper .step span.label { display: none; } }
