﻿:root {
    --sp-primary: #2563eb;
    --sp-primary-dark: #1d4ed8;
    --sp-secondary: #0f172a;
    --sp-accent: #06b6d4;
    --sp-success: #16a34a;
    --sp-danger: #dc2626;
    --sp-warning: #d97706;
    --sp-bg: #f5f7fb;
    --sp-card: #ffffff;
    --sp-border: #e5e7eb;
    --sp-text: #1e293b;
    --sp-muted: #64748b;
    --sp-radius: 12px;
    --sp-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --sp-shadow-hover: 0 14px 35px rgba(15, 23, 42, 0.14);
    --sp-transition: all 0.25s ease;
}

/* =========================================================
   STUDENT PORTAL TYPOGRAPHY
   ========================================================= */
/* =========================================================
   PROFILE TYPOGRAPHY
   ========================================================= */

.student-profile-overline {
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}


/* STUDENT NAME */

.student-profile-summary h2 {
    margin: 0;
    color: #172033;
    font-size: 21px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.25px;
}


/* ROLL NUMBER */

.student-profile-roll {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1px;
}


/* PROFILE TAGS */

.student-profile-tags span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}


/* =========================================================
   SECTION TITLES
   ========================================================= */

.student-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.student-section-heading h3 {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.1px;
}


/* =========================================================
   FIELD LABELS
   ========================================================= */

.student-info-item label {
    display: block;
    margin: 0 0 5px;
    color: #8491a3;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .25px;
    text-transform: uppercase;
}


/* =========================================================
   FIELD VALUES
   ========================================================= */

.student-info-item > div {
    color: #27364b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    word-break: break-word;
}

.student-info-item .primary-value {
    color: #2563eb;
    font-weight: 600;
}
/* =========================================================
   GLOBAL
   ========================================================= */

html {
    font-size: 14px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--sp-bg);
    color: var(--sp-text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--sp-primary);
    text-decoration: none;
    transition: var(--sp-transition);
}

    a:hover {
        color: var(--sp-primary-dark);
        text-decoration: none;
    }

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   PAGE
   ========================================================= */

.sp-page {
    min-height: 100vh;
    padding: 30px;
}

.sp-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================================
   LOGIN PAGE
   ========================================================= */

.sp-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: radial-gradient( circle at top left, rgba(37, 99, 235, 0.15), transparent 35% ), radial-gradient( circle at bottom right, rgba(6, 182, 212, 0.12), transparent 35% ), #f5f7fb;
}

.sp-login-wrapper {
    width: 100%;
    max-width: 430px;
}

.sp-login-card {
    background: var(--sp-card);
    border-radius: 18px;
    padding: 38px 35px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

    .sp-login-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient( 90deg, var(--sp-primary), var(--sp-accent) );
    }


/* =========================================================
   LOGIN LOGO
   ========================================================= */

.sp-login-logo {
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( 135deg, var(--sp-primary), var(--sp-accent) );
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

.sp-login-title {
    text-align: center;
    margin-bottom: 28px;
}

    .sp-login-title h1,
    .sp-login-title h2 {
        margin: 0 0 7px;
        font-size: 25px;
        font-weight: 700;
        color: var(--sp-secondary);
    }

    .sp-login-title p {
        margin: 0;
        color: var(--sp-muted);
        font-size: 14px;
    }


/* =========================================================
   FORM
   ========================================================= */

.sp-form-group {
    margin-bottom: 20px;
}

.sp-form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--sp-secondary);
    font-size: 13px;
    font-weight: 600;
}

.sp-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--sp-border);
    border-radius: 9px;
    background: #fff;
    color: var(--sp-text);
    font-size: 14px;
    outline: none;
    transition: var(--sp-transition);
    box-sizing: border-box;
}

    .sp-input:focus {
        border-color: var(--sp-primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }

    .sp-input::placeholder {
        color: #94a3b8;
    }


/* =========================================================
   INPUT WITH ICON
   ========================================================= */

.sp-input-wrapper {
    position: relative;
}

    .sp-input-wrapper .sp-input {
        padding-left: 42px;
    }

.sp-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}


/* =========================================================
   PASSWORD EYE
   ========================================================= */

.sp-password-wrapper {
    position: relative;
}

    .sp-password-wrapper .sp-input {
        padding-right: 45px;
    }

.sp-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    transition: var(--sp-transition);
}

    .sp-password-toggle:hover {
        color: var(--sp-primary);
    }


/* =========================================================
   BUTTONS
   ========================================================= */

.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sp-transition);
    text-decoration: none;
}

    .sp-btn:hover {
        transform: translateY(-1px);
    }

    .sp-btn:active {
        transform: translateY(0);
    }

.sp-btn-primary {
    color: #fff;
    background: linear-gradient( 135deg, var(--sp-primary), var(--sp-primary-dark) );
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.20);
}

    .sp-btn-primary:hover {
        color: #fff;
        box-shadow: 0 9px 20px rgba(37, 99, 235, 0.30);
    }

.sp-btn-block {
    width: 100%;
}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.sp-login-button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient( 135deg, var(--sp-primary), var(--sp-primary-dark) );
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sp-transition);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.22);
}

    .sp-login-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.30);
    }

    .sp-login-button:active {
        transform: translateY(0);
    }


/* =========================================================
   REMEMBER ME
   ========================================================= */

.sp-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.sp-checkbox {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--sp-muted);
    font-size: 13px;
    cursor: pointer;
}

    .sp-checkbox input {
        width: 15px;
        height: 15px;
        cursor: pointer;
    }


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.sp-forgot {
    color: var(--sp-primary);
    font-size: 13px;
    font-weight: 600;
}

    .sp-forgot:hover {
        color: var(--sp-primary-dark);
    }


/* =========================================================
   VALIDATION
   ========================================================= */

.sp-validation {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--sp-danger);
    font-size: 13px;
}

.field-validation-error {
    display: block;
    margin-top: 5px;
    color: var(--sp-danger);
    font-size: 12px;
}


/* =========================================================
   ALERTS
   ========================================================= */

.sp-alert {
    padding: 13px 16px;
    margin-bottom: 20px;
    border-radius: 9px;
    font-size: 14px;
    border: 1px solid transparent;
}

.sp-alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.sp-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.sp-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.sp-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}


/* =========================================================
   CARDS
   ========================================================= */

.sp-card {
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow);
    padding: 22px;
    transition: var(--sp-transition);
}

    .sp-card:hover {
        box-shadow: var(--sp-shadow-hover);
    }

.sp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sp-border);
}

.sp-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-secondary);
}


/* =========================================================
   DASHBOARD STAT CARDS
   ========================================================= */

.sp-stat-card {
    background: #fff;
    border-radius: 13px;
    padding: 20px;
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
    transition: var(--sp-transition);
}

    .sp-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--sp-shadow-hover);
    }

.sp-stat-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.10);
    color: var(--sp-primary);
    font-size: 20px;
    margin-bottom: 14px;
}

.sp-stat-value {
    font-size: 25px;
    font-weight: 700;
    color: var(--sp-secondary);
}

.sp-stat-label {
    color: var(--sp-muted);
    font-size: 13px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.sp-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.sp-page-title {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: var(--sp-secondary);
}

.sp-page-subtitle {
    margin: 4px 0 0;
    color: var(--sp-muted);
    font-size: 13px;
}


/* =========================================================
   TABLE
   ========================================================= */

.sp-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--sp-border);
    box-shadow: var(--sp-shadow);
}

.sp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .sp-table th {
        padding: 13px 15px;
        background: #f8fafc;
        color: var(--sp-secondary);
        font-weight: 600;
        text-align: left;
        border-bottom: 1px solid var(--sp-border);
        white-space: nowrap;
    }

    .sp-table td {
        padding: 12px 15px;
        border-bottom: 1px solid #f1f5f9;
        color: var(--sp-text);
    }

    .sp-table tbody tr {
        transition: var(--sp-transition);
    }

        .sp-table tbody tr:hover {
            background: #f8fafc;
        }

        .sp-table tbody tr:last-child td {
            border-bottom: 0;
        }


/* =========================================================
   BADGES
   ========================================================= */

.sp-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.sp-badge-success {
    background: #dcfce7;
    color: #166534;
}

.sp-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.sp-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.sp-badge-info {
    background: #dbeafe;
    color: #1e40af;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.sp-navbar {
    min-height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--sp-border);
    box-shadow: 0 3px 15px rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
}

.sp-navbar-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--sp-secondary);
}

    .sp-navbar-brand:hover {
        color: var(--sp-primary);
    }


/* =========================================================
   SIDEBAR
   ========================================================= */

.sp-sidebar {
    width: 250px;
    min-height: 100vh;
    background: var(--sp-secondary);
    color: #fff;
    padding: 20px 14px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.sp-sidebar-brand {
    padding: 12px 15px 25px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: 15px;
}

.sp-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    transition: var(--sp-transition);
}

    .sp-sidebar-link:hover,
    .sp-sidebar-link.active {
        color: #fff;
        background: rgba(255,255,255,.10);
    }

    .sp-sidebar-link.active {
        background: linear-gradient( 90deg, rgba(37,99,235,.85), rgba(37,99,235,.55) );
    }


/* =========================================================
   FOOTER
   ========================================================= */

.sp-footer {
    padding: 20px;
    text-align: center;
    color: var(--sp-muted);
    font-size: 12px;
}


/* =========================================================
   LOADING
   ========================================================= */

.sp-loading {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(255,255,255,.75);
    align-items: center;
    justify-content: center;
}

    .sp-loading.active {
        display: flex;
    }

.sp-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--sp-primary);
    border-radius: 50%;
    animation: sp-spin .8s linear infinite;
}

@keyframes sp-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {

    .sp-page {
        padding: 15px;
    }

    .sp-login-page {
        padding: 15px;
    }

    .sp-login-card {
        padding: 30px 22px;
    }

    .sp-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-page-title {
        font-size: 21px;
    }

    .sp-form-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
    }
}


/* =========================================================
   UTILITY
   ========================================================= */

.sp-text-primary {
    color: var(--sp-primary) !important;
}

.sp-text-muted {
    color: var(--sp-muted) !important;
}

.sp-text-success {
    color: var(--sp-success) !important;
}

.sp-text-danger {
    color: var(--sp-danger) !important;
}

.sp-text-warning {
    color: var(--sp-warning) !important;
}

.sp-bg-primary {
    background: var(--sp-primary) !important;
}

.sp-mt-10 {
    margin-top: 10px;
}

.sp-mt-20 {
    margin-top: 20px;
}

.sp-mb-10 {
    margin-bottom: 10px;
}

.sp-mb-20 {
    margin-bottom: 20px;
}



.sp-login-footer {
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
    text-align: center;
    font-size: 12px;
    color: var(--sp-muted);
}

.sp-input-wrapper .sp-password-wrapper {
    width: 100%;
}

.sp-input-wrapper .sp-input {
    width: 100%;
}

.sp-login-button i {
    margin-right: 5px;
}

.sp-form-group .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

.sp-login-card form {
    width: 100%;
}



/* ============================================================
   STUDENT PORTAL LAYOUT
   ============================================================ */

.sp-portal-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f5f7fb;
    overflow-x: hidden;
}

.sp-portal {
    min-height: 100vh;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sp-portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 255px;
    display: flex;
    flex-direction: column;
    background: linear-gradient( 180deg, #0f172a 0%, #172554 100% );
    box-shadow: 8px 0 30px rgba(15, 23, 42, .10);
    z-index: 1050;
    transition: all .25s ease;
}


/* SIDEBAR HEADER */

.sp-sidebar-header {
    min-height: 78px;
    display: flex;
    align-items: center;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.sp-sidebar-logo {
    display: flex;
    align-items: center;
    width: 100%;
    color: #fff !important;
    text-decoration: none !important;
}

.sp-sidebar-logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .30);
}

.sp-sidebar-logo-text {
    margin-left: 12px;
}

.sp-sidebar-logo-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 20px;
}

.sp-sidebar-logo-subtitle {
    margin-top: 3px;
    font-size: 11px;
    color: #94a3b8;
}


/* ============================================================
   STUDENT INFORMATION
   ============================================================ */

.sp-sidebar-student {
    display: flex;
    align-items: center;
    margin: 18px 14px 10px;
    padding: 13px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.06);
}

.sp-student-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37,99,235,.28);
    color: #93c5fd;
    font-size: 17px;
}

.sp-student-info {
    min-width: 0;
    margin-left: 11px;
}

.sp-student-name {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-student-id {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 11px;
}


/* ============================================================
   SIDEBAR MENU
   ============================================================ */

.sp-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 5px 12px 20px;
}

.sp-menu-caption {
    padding: 17px 12px 7px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sp-menu-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 45px;
    margin-bottom: 4px;
    padding: 0 13px;
    border-radius: 9px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    transition: all .20s ease;
}

    .sp-menu-item:hover {
        color: #fff !important;
        background: rgba(255,255,255,.07);
        transform: translateX(2px);
    }

    .sp-menu-item.active {
        color: #fff !important;
        background: linear-gradient( 90deg, #2563eb, #0891b2 );
        box-shadow: 0 7px 18px rgba(37,99,235,.22);
    }

.sp-menu-icon {
    width: 28px;
    font-size: 15px;
    text-align: center;
}

.sp-menu-title {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 500;
}

.sp-menu-item.active .sp-menu-title {
    font-weight: 600;
}


/* ============================================================
   SIDEBAR FOOTER
   ============================================================ */

.sp-sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.sp-menu-logout {
    color: #fca5a5 !important;
}

    .sp-menu-logout:hover {
        color: #fff !important;
        background: rgba(220,38,38,.20);
    }


/* ============================================================
   MAIN CONTENT
   ============================================================ */

.sp-portal-main {
    min-height: 100vh;
    margin-left: 255px;
    display: flex;
    flex-direction: column;
    transition: margin-left .25s ease;
}


/* ============================================================
   HEADER
   ============================================================ */

.sp-portal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e8edf4;
    box-shadow: 0 3px 18px rgba(15,23,42,.04);
}

.sp-header-left,
.sp-header-right {
    display: flex;
    align-items: center;
}

.sp-sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border: 0;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 17px;
    cursor: pointer;
}

.sp-header-title {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
}

.sp-header-subtitle {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
}


/* ============================================================
   HEADER USER
   ============================================================ */

.sp-header-user {
    display: flex;
    align-items: center;
    padding-right: 16px;
    margin-right: 13px;
    border-right: 1px solid #e5e7eb;
}

.sp-header-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient( 135deg, #2563eb, #06b6d4 );
    color: #fff;
    box-shadow: 0 5px 14px rgba(37,99,235,.20);
}

.sp-header-user-info {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.sp-header-user-name {
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
}

.sp-header-user-role {
    color: #94a3b8;
    font-size: 10px;
}

.sp-header-logout {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fef2f2;
    color: #dc2626 !important;
    text-decoration: none !important;
    transition: all .20s ease;
}

    .sp-header-logout:hover {
        background: #dc2626;
        color: #fff !important;
    }


/* ============================================================
   PAGE CONTENT
   ============================================================ */

.sp-portal-content {
    flex: 1;
    width: 100%;
    padding: 25px 28px 35px;
}


/* ============================================================
   COMMON PAGE TITLE BLOCK
   ============================================================ */

.sp-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.sp-content-title {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
}

.sp-content-description {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
}


/* ============================================================
   COMMON PANEL
   ============================================================ */

.sp-panel {
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(15,23,42,.05);
}

.sp-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 58px;
    padding: 12px 20px;
    border-bottom: 1px solid #eef2f7;
}

.sp-panel-title {
    margin: 0;
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
}

.sp-panel-body {
    padding: 20px;
}


/* ============================================================
   DASHBOARD BOX
   ============================================================ */

.sp-dashboard-card {
    position: relative;
    min-height: 125px;
    margin-bottom: 20px;
    padding: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 13px;
    box-shadow: 0 5px 20px rgba(15,23,42,.05);
    transition: all .20s ease;
}

    .sp-dashboard-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(15,23,42,.09);
    }

.sp-dashboard-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 19px;
}

.sp-dashboard-value {
    margin-top: 13px;
    color: #0f172a;
    font-size: 23px;
    font-weight: 700;
}

.sp-dashboard-label {
    color: #64748b;
    font-size: 12px;
}


/* ============================================================
   FORMS
   ============================================================ */

.sp-form-control {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    outline: none;
    transition: all .20s ease;
}

    .sp-form-control:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,.10);
    }

.sp-control-label {
    margin-bottom: 6px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.sp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .20s ease;
}

.sp-action-primary {
    background: linear-gradient( 135deg, #2563eb, #0891b2 );
    color: #fff !important;
}

    .sp-action-primary:hover {
        color: #fff !important;
        box-shadow: 0 6px 15px rgba(37,99,235,.23);
        transform: translateY(-1px);
    }

.sp-action-light {
    background: #f1f5f9;
    color: #475569 !important;
}


/* ============================================================
   TABLE
   ============================================================ */

.sp-data-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .sp-data-table thead th {
        padding: 11px 12px;
        background: #f8fafc;
        color: #475569;
        border-bottom: 1px solid #e2e8f0;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
    }

    .sp-data-table tbody td {
        padding: 11px 12px;
        color: #334155;
        border-bottom: 1px solid #eef2f7;
        font-size: 12px;
    }

    .sp-data-table tbody tr:hover td {
        background: #f8fafc;
    }


/* ============================================================
   FOOTER
   ============================================================ */

.sp-portal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 55px;
    padding: 0 28px;
    border-top: 1px solid #e8edf4;
    background: #fff;
    color: #94a3b8;
    font-size: 11px;
}


/* ============================================================
   MOBILE OVERLAY
   ============================================================ */

.sp-sidebar-overlay {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(15,23,42,.50);
    z-index: 1040;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {

    .sp-portal-sidebar {
        transform: translateX(-100%);
    }

    .sp-portal-main {
        margin-left: 0;
    }

    .sp-sidebar-open .sp-portal-sidebar {
        transform: translateX(0);
    }

    .sp-sidebar-open .sp-sidebar-overlay {
        display: block;
    }

    .sp-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sp-portal-header {
        padding: 0 15px;
    }

    .sp-portal-content {
        padding: 20px 15px;
    }

    .sp-portal-footer {
        padding: 0 15px;
    }
}


@media (max-width: 575px) {

    .sp-header-user-info {
        display: none;
    }

    .sp-header-user {
        padding-right: 10px;
        margin-right: 8px;
    }

    .sp-header-title {
        font-size: 15px;
    }

    .sp-header-subtitle {
        display: none;
    }

    .sp-content-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .sp-content-title {
        font-size: 20px;
    }

    .sp-footer-right {
        display: none;
    }
}


/* ============================================================
   PROFESSIONAL STUDENT PROFILE
   ============================================================ */

.student-profile-shell {
    margin-bottom: 24px;
}


/* ============================================================
   SUMMARY HEADER
   ============================================================ */

.student-profile-summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 150px;
    padding: 24px 30px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e9f0;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, .055);
}

    .student-profile-summary::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient( 180deg, #2563eb, #06b6d4 );
    }


/* PHOTO */

.student-profile-photo-area {
    flex: 0 0 auto;
    margin-right: 24px;
}

.student-profile-photo {
    width: 100px;
    height: 100px;
    display: block;
    object-fit: cover;
    border-radius: 14px;
    border: 4px solid #fff;
    outline: 1px solid #dbe3ed;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .10);
}

    .student-profile-photo.no-photo {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        color: #64748b;
        font-size: 35px;
    }


/* PROFILE TEXT */

.student-profile-summary-content {
    min-width: 0;
}

.student-profile-overline {
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.student-profile-summary h2 {
    margin: 0;
    color: #162033;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
}

.student-profile-roll {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}


/* TAGS */

.student-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

    .student-profile-tags span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border: 1px solid #e2e8f0;
        border-radius: 7px;
        background: #f8fafc;
        color: #475569;
        font-size: 10px;
        font-weight: 600;
    }

        .student-profile-tags span i {
            color: #2563eb;
        }

        .student-profile-tags span.active {
            border-color: #bbf7d0;
            background: #f0fdf4;
            color: #15803d;
        }

            .student-profile-tags span.active i {
                color: #16a34a;
            }


/* ============================================================
   INFORMATION SECTIONS
   ============================================================ */

.student-profile-information {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.student-information-section {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .045);
}


/* SECTION HEADER */

.student-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 14px 20px;
    background: #fbfcfe;
    border-bottom: 1px solid #e9edf3;
}

.student-section-kicker {
    display: block;
    margin-bottom: 2px;
    color: #2563eb;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.student-section-heading h3 {
    margin: 0;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
}

.student-section-heading > i {
    color: #cbd5e1;
    font-size: 22px;
}


/* ============================================================
   INFORMATION GRID
   ============================================================ */

.student-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 20px 14px;
}

.student-info-item {
    position: relative;
    min-height: 67px;
    padding: 14px 14px 12px 0;
    border-bottom: 1px solid #eef1f5;
}

    .student-info-item:nth-child(odd) {
        padding-right: 22px;
        border-right: 1px solid #eef1f5;
    }

    .student-info-item:nth-child(even) {
        padding-left: 22px;
    }

    .student-info-item.full {
        grid-column: 1 / -1;
        padding-left: 0;
        padding-right: 0;
        border-right: 0;
    }

    .student-info-item label {
        display: block;
        margin: 0 0 5px;
        color: #8b98aa;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .45px;
        text-transform: uppercase;
    }

    .student-info-item > div {
        color: #253249;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.45;
        word-break: break-word;
    }

    .student-info-item .primary-value {
        color: #2563eb;
        font-weight: 700;
    }


/* Remove border from final row */

.student-info-grid
.student-info-item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.student-info-grid
.student-info-item.full:last-child {
    border-bottom: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {

    .student-profile-information {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {

    .student-profile-summary {
        align-items: flex-start;
        padding: 22px 18px;
        flex-direction: column;
    }

    .student-profile-photo-area {
        margin: 0 0 17px;
    }

    .student-profile-summary h2 {
        font-size: 19px;
    }

    .student-info-grid {
        grid-template-columns: 1fr;
    }

    .student-info-item,
    .student-info-item:nth-child(odd),
    .student-info-item:nth-child(even) {
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid #eef1f5;
    }

        .student-info-item.full {
            grid-column: auto;
        }
}


/* ============================================================
   FINAL PROFILE TYPOGRAPHY OVERRIDE
   KEEP THIS AT THE END OF StudentsPortal.css
   ============================================================ */

/* Entire profile */
.student-profile-shell,
.student-profile-shell * {
    font-family: "Segoe UI", Arial, sans-serif;
}


/* ============================================================
   STUDENT HEADER
   ============================================================ */

.student-profile-overline {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .7px !important;
    color: #2563eb !important;
}

.student-profile-summary h2 {
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: -.3px !important;
    color: #111827 !important;
}

.student-profile-roll {
    margin-top: 5px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #536174 !important;
}


/* Department / Semester / Active */

.student-profile-tags span {
    padding: 7px 11px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #334155 !important;
}


/* ============================================================
   PERSONAL / ACADEMIC SMALL HEADING
   ============================================================ */

.student-section-kicker {
    margin-bottom: 4px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .6px !important;
    color: #2563eb !important;
}


/* Personal Information / Academic Information */

.student-section-heading h3 {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #111827 !important;
}


/* ============================================================
   FIELD LABEL
   ============================================================ */

.student-info-item label {
    display: block !important;
    margin-bottom: 5px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: .15px !important;
    color: #64748b !important;
    text-transform: uppercase;
}


/* ============================================================
   FIELD VALUE
   ============================================================ */

.student-info-item > div {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    color: #172033 !important;
}


/* Roll number should NOT be light blue */

.student-info-item .primary-value {
    color: #172033 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}


/* ============================================================
   MORE BREATHING SPACE
   ============================================================ */

.student-info-item {
    min-height: 76px !important;
    padding-top: 16px !important;
    padding-bottom: 15px !important;
}

.student-info-grid {
    padding-top: 8px !important;
    padding-bottom: 10px !important;
}


/* ============================================================
   PAGE TITLE
   ============================================================ */

.sp-content-title {
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: -.25px;
    color: #111827 !important;
}

.sp-content-description {
    margin-top: 4px;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #64748b !important;
}


/* ============================================================
   DOCUMENT SECTION
   ============================================================ */

.sp-panel-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #172033 !important;
}