/* ============================================================
   StudentConnect Admin — style.css
   One file. All styles. No overrides needed.
   Font: Outfit (Google Fonts) + Remix Icons
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css');

/* ── Variables ─────────────────────────────────────────────── */
:root {
    /* Sidebar */
    --sidebar-bg:        #0B1120;
    --sidebar-hover:     #141e33;
    --sidebar-active-bg: rgba(79, 140, 255, 0.12);
    --sidebar-border:    rgba(255,255,255,0.06);
    --sidebar-width:     258px;
    --sidebar-collapsed: 0px;

    /* Brand */
    --primary:       #4F8CFF;
    --primary-dark:  #2d6eea;
    --primary-light: rgba(79,140,255,0.12);

    /* Semantic */
    --success:       #10B981;
    --success-light: rgba(16,185,129,0.12);
    --warning:       #F59E0B;
    --warning-light: rgba(245,158,11,0.12);
    --danger:        #EF4444;
    --danger-light:  rgba(239,68,68,0.12);
    --info:          #06B6D4;
    --info-light:    rgba(6,182,212,0.12);

    /* Neutrals */
    --bg:            #F3F6FB;
    --surface:       #FFFFFF;
    --border:        #E8EDF5;
    --text-primary:  #0F1929;
    --text-secondary:#5A6A85;
    --text-muted:    #94A3B8;

    /* Header */
    --header-h:      60px;

    /* Misc */
    --radius:        10px;
    --radius-sm:     6px;
    --radius-lg:     14px;
    --shadow-sm:     0 1px 3px rgba(15,25,41,0.07);
    --shadow:        0 4px 16px rgba(15,25,41,0.09);
    --shadow-lg:     0 12px 40px rgba(15,25,41,0.14);
    --transition:    0.22s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout Shell ───────────────────────────────────────────── */
.sc-wrap {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sc-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    transition: transform var(--transition), width var(--transition);
    border-right: 1px solid var(--sidebar-border);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Scrollbar inside sidebar */
.sc-sidebar::-webkit-scrollbar { width: 3px; }
.sc-sidebar::-webkit-scrollbar-track { background: transparent; }
.sc-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sc-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sc-sidebar__logo {
    width: 36px; height: 36px;
    background: var(--primary);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.sc-sidebar__logo i { font-size: 19px; color: #fff; }

.sc-sidebar__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.sc-sidebar__name span {
    color: var(--primary);
}

/* Nav groups */
.sc-nav {
    flex: 1;
    padding: 16px 0;
}

.sc-nav__group {
    margin-bottom: 6px;
}

.sc-nav__label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    padding: 10px 20px 6px;
    white-space: nowrap;
}

.sc-nav__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 20px;
    margin: 2px 10px;
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.55);
    font-size: 0.895rem;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.sc-nav__item i {
    font-size: 18px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.sc-nav__item:hover {
    background: var(--sidebar-hover);
    color: rgba(255,255,255,0.9);
}

.sc-nav__item.active {
    background: var(--sidebar-active-bg);
    color: var(--primary);
    font-weight: 600;
}

.sc-nav__item.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%; transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}

/* Badge on nav item */
.sc-nav__badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    line-height: 1.6;
}

/* Sidebar footer */
.sc-sidebar__foot {
    padding: 14px 16px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sc-sidebar__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.sc-sidebar__user:hover { background: var(--sidebar-hover); }

.sc-sidebar__avatar {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.sc-sidebar__uinfo { flex: 1; min-width: 0; }
.sc-sidebar__uname {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-sidebar__urole {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Overlay for mobile */
.sc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sc-overlay.show { display: block; }

/* ── Main Content Area ──────────────────────────────────────── */
.sc-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition);
}

/* ── Header ─────────────────────────────────────────────────── */
.sc-header {
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.sc-header__hamburger {
    display: none;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    transition: background var(--transition);
    flex-shrink: 0;
}

.sc-header__hamburger:hover { background: var(--bg); }

.sc-header__breadcrumb {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0;
}

.sc-header__breadcrumb span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.sc-header__breadcrumb span + span::before {
    content: '/';
    margin: 0 6px;
    color: var(--border);
}
.sc-header__breadcrumb span.current {
    color: var(--text-primary);
    font-weight: 600;
}

/* Search bar */
.sc-header__search {
    position: relative;
    display: flex;
    align-items: center;
}

.sc-header__search i {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.sc-header__search input {
    padding: 7px 14px 7px 34px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.83rem;
    color: var(--text-primary);
    outline: none;
    width: 220px;
    transition: border-color var(--transition), width var(--transition);
}

.sc-header__search input::placeholder { color: var(--text-muted); }
.sc-header__search input:focus {
    border-color: var(--primary);
    width: 260px;
}

/* Header actions */
.sc-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-header__btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    font-size: 19px;
    transition: background var(--transition);
}

.sc-header__btn:hover { background: var(--bg); color: var(--text-primary); }

.sc-header__btn .dot {
    position: absolute;
    top: 7px; right: 8px;
    width: 7px; height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid var(--surface);
}

.sc-header__divider {
    width: 1px; height: 24px;
    background: var(--border);
    margin: 0 4px;
}

.sc-header__profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
}

.sc-header__profile:hover { background: var(--bg); }

.sc-header__profile-avatar {
    width: 32px; height: 32px;
    border-radius: 7px;
    background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.sc-header__profile-name {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* ── Page Content ───────────────────────────────────────────── */
.sc-content {
    flex: 1;
    padding: 28px 28px 40px;
}

/* Page header */
.sc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.sc-page-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.sc-page-subtitle {
    font-size: 0.83rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.sc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.sc-stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow var(--transition), transform var(--transition);
}

.sc-stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.sc-stat-card__icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sc-stat-card__body { flex: 1; min-width: 0; }

.sc-stat-card__value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.sc-stat-card__label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sc-stat-card__delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 5px;
}

.sc-stat-card__delta.up   { color: var(--success); }
.sc-stat-card__delta.down { color: var(--danger); }

/* Color variants */
.sc-stat-card__icon.blue   { background: var(--primary-light);  color: var(--primary); }
.sc-stat-card__icon.green  { background: var(--success-light);  color: var(--success); }
.sc-stat-card__icon.amber  { background: var(--warning-light);  color: var(--warning); }
.sc-stat-card__icon.red    { background: var(--danger-light);   color: var(--danger); }
.sc-stat-card__icon.cyan   { background: var(--info-light);     color: var(--info); }

/* ── Cards / Panels ─────────────────────────────────────────── */
.sc-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.sc-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}

.sc-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sc-card__subtitle {
    font-size: 0.77rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

.sc-card__body {
    padding: 20px 22px;
}

.sc-card__body--flush { padding: 0; }

/* Row layout for cards */
.sc-row {
    display: grid;
    gap: 20px;
}

.sc-row--2 { grid-template-columns: 1fr 1fr; }
.sc-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.sc-row--60-40 { grid-template-columns: 3fr 2fr; }
.sc-row--40-60 { grid-template-columns: 2fr 3fr; }

/* ── Tables ─────────────────────────────────────────────────── */
.sc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.855rem;
}

.sc-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.73rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: #FAFBFE;
}

.sc-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.sc-table tbody tr:last-child { border-bottom: none; }

.sc-table tbody tr:hover { background: var(--bg); }

.sc-table tbody td {
    padding: 13px 16px;
    color: var(--text-primary);
    vertical-align: middle;
}

.sc-table .text-muted { color: var(--text-muted); }

/* User cell with avatar */
.sc-table__user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-table__user-avatar {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.sc-table__user-name {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.sc-table__user-sub {
    font-size: 0.73rem;
    color: var(--text-muted);
}

/* ── Badges / Pills ─────────────────────────────────────────── */
.sc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.4;
}

.sc-badge.blue    { background: var(--primary-light);  color: var(--primary); }
.sc-badge.green   { background: var(--success-light);  color: var(--success); }
.sc-badge.amber   { background: var(--warning-light);  color: var(--warning); }
.sc-badge.red     { background: var(--danger-light);   color: var(--danger); }
.sc-badge.cyan    { background: var(--info-light);     color: var(--info); }
.sc-badge.gray    { background: #F1F4F9;               color: var(--text-secondary); }

.sc-badge i { font-size: 11px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    font-weight: 600;
    transition: all var(--transition);
    line-height: 1;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.sc-btn i { font-size: 16px; }

.sc-btn--primary {
    background: var(--primary);
    color: #fff;
}
.sc-btn--primary:hover { background: var(--primary-dark); }

.sc-btn--success {
    background: var(--success);
    color: #fff;
}
.sc-btn--success:hover { background: #0da271; }

.sc-btn--danger {
    background: var(--danger);
    color: #fff;
}
.sc-btn--danger:hover { background: #d93737; }

.sc-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.sc-btn--ghost:hover {
    background: var(--bg);
    color: var(--text-primary);
}

.sc-btn--sm {
    padding: 5px 11px;
    font-size: 0.78rem;
}
.sc-btn--sm i { font-size: 14px; }

/* Btn group */
.sc-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Toolbar (search + filter row) ─────────────────────────── */
.sc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sc-toolbar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sc-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.sc-search-box i {
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.sc-search-box input {
    padding: 8px 12px 8px 34px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    color: var(--text-primary);
    outline: none;
    width: 240px;
    transition: border-color var(--transition);
}

.sc-search-box input:focus { border-color: var(--primary); }
.sc-search-box input::placeholder { color: var(--text-muted); }

.sc-filter-select {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.83rem;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition);
    font-family: inherit;
}

.sc-filter-select:focus { border-color: var(--primary); }

/* ── Forms ──────────────────────────────────────────────────── */
.sc-form-group {
    margin-bottom: 18px;
}

.sc-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.sc-form-control {
    width: 100%;
    padding: 9px 13px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.855rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    font-family: inherit;
}

.sc-form-control:focus {
    border-color: var(--primary);
    background: #fff;
}

.sc-form-control::placeholder { color: var(--text-muted); }

textarea.sc-form-control { resize: vertical; min-height: 90px; }

select.sc-form-control { cursor: pointer; }

/* ── Modal ──────────────────────────────────────────────────── */
.sc-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,25,41,0.55);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.sc-modal-backdrop.show {
    display: flex;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sc-modal {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.22s ease;
}

@keyframes modalSlide {
    from { transform: translateY(16px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.sc-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.sc-modal__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sc-modal__close {
    width: 30px; height: 30px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    transition: background var(--transition);
}

.sc-modal__close:hover { background: var(--bg); color: var(--text-primary); }

.sc-modal__body { padding: 22px; }

.sc-modal__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
}

/* ── Toast Notifications ────────────────────────────────────── */
.sc-toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.sc-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes toastIn {
    from { transform: translateX(80px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.sc-toast.out {
    animation: toastOut 0.22s ease forwards;
}

@keyframes toastOut {
    to { transform: translateX(80px); opacity: 0; }
}

.sc-toast__icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.sc-toast__body { flex: 1; }
.sc-toast__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.sc-toast__msg {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sc-toast.success .sc-toast__icon { background: var(--success-light); color: var(--success); }
.sc-toast.error   .sc-toast__icon { background: var(--danger-light);  color: var(--danger); }
.sc-toast.info    .sc-toast__icon { background: var(--primary-light); color: var(--primary); }
.sc-toast.warning .sc-toast__icon { background: var(--warning-light); color: var(--warning); }

/* ── Progress / Match Score ─────────────────────────────────── */
.sc-progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.sc-progress-bar__fill {
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s ease;
}

.sc-progress-bar__fill.high   { background: var(--success); }
.sc-progress-bar__fill.mid    { background: var(--warning); }
.sc-progress-bar__fill.low    { background: var(--danger); }

/* ── Activity Feed ──────────────────────────────────────────── */
.sc-activity { display: flex; flex-direction: column; gap: 0; }

.sc-activity__item {
    display: flex;
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.sc-activity__item:last-child { border-bottom: none; }

.sc-activity__dot {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.sc-activity__content { flex: 1; }
.sc-activity__text {
    font-size: 0.83rem;
    color: var(--text-primary);
    line-height: 1.4;
}
.sc-activity__text strong { font-weight: 600; }
.sc-activity__time {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Skill Tag ──────────────────────────────────────────────── */
.sc-skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.sc-skill-tag button {
    display: flex; align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.sc-skill-tag button:hover { color: var(--danger); }

.sc-skill-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

/* ── Empty State ────────────────────────────────────────────── */
.sc-empty {
    text-align: center;
    padding: 48px 24px;
}

.sc-empty i {
    font-size: 42px;
    color: var(--border);
    display: block;
    margin-bottom: 12px;
}

.sc-empty p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ── Divider ────────────────────────────────────────────────── */
.sc-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* ── Pagination ─────────────────────────────────────────────── */
.sc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.sc-pagination__info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sc-pagination__pages {
    display: flex;
    gap: 4px;
}

.sc-pagination__btn {
    width: 32px; height: 32px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.sc-pagination__btn:hover { background: var(--bg); border-color: var(--primary); color: var(--primary); }
.sc-pagination__btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.sc-pagination__btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Charts placeholder ─────────────────────────────────────── */
.sc-chart-wrap {
    position: relative;
    width: 100%;
}

/* ── Verification Card ──────────────────────────────────────── */
.sc-verify-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.sc-verify-card:last-child { border-bottom: none; }

.sc-verify-card__logo {
    width: 44px; height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    background: var(--bg);
}

.sc-verify-card__info { flex: 1; min-width: 0; }
.sc-verify-card__name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.88rem;
}
.sc-verify-card__meta {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.sc-verify-card__actions {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
    align-items: center;
}

/* ── Skill Manager Row ──────────────────────────────────────── */
.sc-skill-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.sc-skill-row:last-child { border-bottom: none; }
.sc-skill-row__name { flex: 1; font-size: 0.86rem; font-weight: 500; }
.sc-skill-row__cat  { font-size: 0.76rem; }
.sc-skill-row__actions { display: flex; gap: 6px; }

/* ── Log row ────────────────────────────────────────────────── */
.sc-log-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* ── Avatar colors ──────────────────────────────────────────── */
.av-blue   { background: #3B82F6; }
.av-green  { background: #10B981; }
.av-purple { background: #8B5CF6; }
.av-orange { background: #F97316; }
.av-pink   { background: #EC4899; }
.av-teal   { background: #14B8A6; }
.av-indigo { background: #6366F1; }
.av-red    { background: #EF4444; }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */

/* Tablet: collapse sidebar */
@media (max-width: 1024px) {
    .sc-stats { grid-template-columns: repeat(2, 1fr); }
    .sc-row--2,
    .sc-row--60-40,
    .sc-row--40-60 { grid-template-columns: 1fr; }
    .sc-row--3 { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --sidebar-width: 258px; }

    .sc-sidebar {
        transform: translateX(-100%);
    }

    .sc-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,0.3);
    }

    .sc-main {
        margin-left: 0;
    }

    .sc-header__hamburger {
        display: flex;
    }

    .sc-header__search {
        display: none;
    }

    .sc-content {
        padding: 18px 16px 32px;
    }

    .sc-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sc-stat-card { padding: 15px 16px; }
    .sc-stat-card__value { font-size: 1.4rem; }

    .sc-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sc-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .sc-toolbar__left { width: 100%; }
    .sc-search-box { width: 100%; }
    .sc-search-box input { width: 100%; }

    .sc-row--3 { grid-template-columns: 1fr; }

    .sc-header__profile-name { display: none; }

    .sc-modal { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .sc-modal-backdrop { align-items: flex-end; padding: 0; }
}

@media (max-width: 480px) {
    .sc-stats { grid-template-columns: 1fr; }
    .sc-header { padding: 0 14px; gap: 8px; }
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.sc-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sidebar-bg);
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.sc-auth-wrap::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(79,140,255,0.08) 0%, transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.sc-auth-wrap::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79,140,255,0.05) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    border-radius: 50%;
    pointer-events: none;
}

.sc-auth-card {
    width: 100%;
    max-width: 420px;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 40px 36px;
    position: relative;
    z-index: 1;
}

.sc-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.sc-auth-logo__icon {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
}

.sc-auth-logo__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.sc-auth-logo__name span { color: var(--primary); }

.sc-auth-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}

.sc-auth-sub {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 28px;
}

/* Auth form inputs — dark version */
.sc-auth-card .sc-form-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.78rem;
}

.sc-auth-card .sc-form-control {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.sc-auth-card .sc-form-control::placeholder {
    color: rgba(255,255,255,0.2);
}

.sc-auth-card .sc-form-control:focus {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary);
}

.sc-auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-top: 6px;
}

.sc-auth-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.sc-auth-btn:active { transform: translateY(0); }

.sc-auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sc-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
}

.sc-auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.sc-auth-footer a:hover { text-decoration: underline; }

.sc-auth-alert {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-auth-alert.error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
}

.sc-auth-alert.success {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    color: #6ee7b7;
}

.sc-pw-wrap {
    position: relative;
}

.sc-pw-wrap .sc-form-control {
    padding-right: 42px;
}

.sc-pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: color var(--transition);
}

.sc-pw-toggle:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 480px) {
    .sc-auth-card { padding: 30px 22px; }
}
/* ── Student / Dashboard Sidebar Overrides ───────────────────── */
.sc-nav__item.active::before {
    left: -10px;
}

/* Match score card */
.sc-opp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-opp-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.sc-opp-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.sc-opp-card__title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.sc-opp-card__company {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.sc-opp-card__score {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.sc-opp-card__score span {
    font-size: 0.58rem;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 1px;
}

.sc-opp-card__score.high   { background: var(--success-light); color: var(--success); }
.sc-opp-card__score.mid    { background: var(--warning-light); color: var(--warning); }
.sc-opp-card__score.low    { background: var(--danger-light);  color: var(--danger); }

.sc-opp-card__explain {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: 6px;
    border-left: 3px solid var(--border);
}

.sc-opp-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.sc-opp-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.sc-opp-card__meta-item i { font-size: 13px; }

.sc-opp-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

/* Application status tracker */
.sc-app-status {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 8px 0;
}

.sc-app-status__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.sc-app-status__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 11px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.sc-app-status__step.done:not(:last-child)::after {
    background: var(--success);
}

.sc-app-status__dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}

.sc-app-status__step.done .sc-app-status__dot {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.sc-app-status__step.current .sc-app-status__dot {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.sc-app-status__label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

.sc-app-status__step.done .sc-app-status__label    { color: var(--success); font-weight: 600; }
.sc-app-status__step.current .sc-app-status__label { color: var(--primary); font-weight: 600; }

/* Profile completion bar */
.sc-profile-nudge {
    background: var(--primary-light);
    border: 1px solid rgba(79,140,255,0.2);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.sc-profile-nudge i {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.sc-profile-nudge__text {
    flex: 1;
}

.sc-profile-nudge__title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
}

.sc-profile-nudge__sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Empty state for opportunities */
.sc-no-matches {
    text-align: center;
    padding: 40px 20px;
}

.sc-no-matches i {
    font-size: 40px;
    color: var(--border);
    display: block;
    margin-bottom: 10px;
}

.sc-no-matches p {
    font-size: 0.86rem;
    color: var(--text-muted);
}