
/* =========================================
   SPMB PORTAL - BASE
========================================= */

.spmb-app {
    --spmb-ink: #192e33;
    --spmb-deep: #173b37;
    --spmb-mint: #e6f1eb;
    --spmb-outline: #e6ebe8;

    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--spmb-ink);
    background: #f5f7f5;
    min-height: 85vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.spmb-app *,
.spmb-app *::before,
.spmb-app *::after {
    box-sizing: border-box;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.spmb-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 90vh;
    max-width: 1700px;
    width: 100%;
    margin: auto;
}

.spmb-sidebar {
    background: var(--spmb-deep);
    color: #fff;
    padding: 30px 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

/* =========================================
   SIDEBAR BRANDING
========================================= */

.spmb-mark {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 11px 40px;
}

.spmb-mark strong {
    display: block;
    font-size: 22px;
    letter-spacing: 0.08em;
}

.spmb-mark small {
    display: block;
    font-size: 11px;
    color: #b2cec2;
}

.spmb-mark-icon {
    background: #d9eaba;
    color: var(--spmb-deep);
    font-weight: 900;
    font-size: 24px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    flex-shrink: 0;
}

/* =========================================
   SIDEBAR NAVIGATION
========================================= */

.spmb-nav-caption {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #91b7aa;
    padding: 0 15px 13px;
}

.spmb-nav-caption-secondary {
    padding-top: 26px;
}

.spmb-nav {
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d2e6db;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.spmb-nav i {
    width: 19px;
    text-align: center;
    flex-shrink: 0;
}

.spmb-nav:hover,
.spmb-nav.active {
    color: var(--spmb-deep);
    background: #e4eddf;
    text-decoration: none;
}

.spmb-side-bottom {
    font-size: 11px;
    color: #a4c0b6;
    margin-top: auto;
    padding: 24px 14px;
}

/* =========================================
   MAIN CONTENT
========================================= */

.spmb-main {
    padding: 42px clamp(22px, 4vw, 66px);
    min-width: 0;
}

.spmb-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 34px;
}

.spmb-topbar h1 {
    font-size: 29px;
    font-weight: 800;
    margin: 8px 0 0;
    letter-spacing: -0.035em;
}

.spmb-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #608276;
    font-weight: 800;
}

.spmb-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.spmb-profile i {
    font-size: 24px;
    color: #57796e;
}

/* =========================================
   STUDENT SWITCHER
========================================= */

.spmb-switch {
    margin: 0 0 25px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.spmb-switch label {
    font-size: 12px;
    color: #687b73;
    font-weight: 700;
    margin: 0;
}

.spmb-switch select {
    max-width: 310px;
    min-width: 0;
    padding: 10px 13px;
    background: white;
    border: 1px solid #d9e2dc;
    border-radius: 10px;
    color: #233a34;
}

/* =========================================
   HERO SECTION
========================================= */

.spmb-hero {
    background: #dfece2;
    border-radius: 17px;
    padding: 32px 35px;
    margin-bottom: 20px;
}

.spmb-hero h2 {
    font-weight: 800;
    font-size: 27px;
    margin: 10px 0 6px;
}

.spmb-hero p {
    margin: 0;
    color: #546f61;
}

/* =========================================
   CARDS
========================================= */

.spmb-card {
    background: white;
    border: 1px solid var(--spmb-outline);
    padding: 26px 28px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 30px #1c363008;
    min-width: 0;
}

.spmb-card h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 20px;
}

.spmb-card p {
    color: #64766e;
}

.spmb-card a:not(.spmb-primary) {
    color: #296956;
    font-size: 13px;
    font-weight: 700;
}

.spmb-cards-three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.spmb-statlabel {
    font-size: 12px;
    color: #6e8078;
    font-weight: 600;
}

.spmb-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 13px 0 17px;
}

/* =========================================
   DETAIL INFORMATION
========================================= */

.spmb-detail {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf1ee;
    font-size: 14px;
    min-width: 0;
}

.spmb-detail span {
    color: #677b70;
}

.spmb-detail strong {
    text-align: right;
    overflow-wrap: anywhere;
}

/* =========================================
   BUTTONS
========================================= */

.spmb-primary {
    background: #1d5246;
    color: white;
    border: 0;
    border-radius: 9px;
    padding: 13px 17px;
    font-weight: 800;
    display: block;
    text-align: center;
    cursor: pointer;
}

.spmb-primary:hover {
    background: #143e35;
    color: white;
    text-decoration: none;
}

.spmb-link-button {
    display: inline-block;
    margin-top: 22px;
}

/* =========================================
   TIMELINE STEPS
========================================= */

.spmb-steps {
    display: grid;
    gap: 8px;
}

.spmb-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
}

.spmb-stepicon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9edeb;
    color: #9ba9a3;
    display: grid;
    place-items: center;
    flex: none;
}

.spmb-stepicon.done {
    background: #dbeee1;
    color: #22784b;
}

.spmb-step strong {
    display: block;
    font-size: 14px;
}

.spmb-step small {
    display: block;
    color: #8b9c92;
    font-size: 12px;
    margin-top: 3px;
}

/* =========================================
   ADMISSION RESULT
========================================= */

.spmb-result {
    padding: 20px;
    background: #f2f5f2;
    border-radius: 11px;
    font-weight: 800;
}

.spmb-result.success {
    background: #e1f2e7;
    color: #1b7941;
}

/* =========================================
   HISTORY
========================================= */

.spmb-history {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid #ebefeb;
    padding: 20px 0;
    text-decoration: none !important;
}

.spmb-history strong,
.spmb-history small {
    display: block;
}

.spmb-history small {
    margin-top: 5px;
    color: #819087;
}

.spmb-history span {
    white-space: nowrap;
}

/* =========================================
   LOGIN PAGE
========================================= */

.spmb-login-page {
    display: grid;
    place-items: center;
    padding: 65px 20px;
}

.spmb-login-panel {
    width: 100%;
    max-width: 460px;
    min-width: 0;
    background: #fff;
    padding: 42px;
    border: 1px solid #e6ebe8;
    border-radius: 20px;
    box-shadow: 0 20px 70px #1d383012;
}

.spmb-login-panel h1 {
    font-weight: 800;
    font-size: 30px;
    letter-spacing: -0.045em;
    margin: 15px 0;
}

.spmb-login-panel p {
    color: #687970;
    font-size: 14px;
    line-height: 1.6;
}

.spmb-login-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 25px 0 18px;
}

.spmb-login-form label {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 800;
}

.spmb-login-form input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border-radius: 9px;
    border: 1px solid #dbe4dd;
    padding: 0 13px;
}

.spmb-login-form button {
    margin-top: 11px;
}

.spmb-smallnote {
    font-size: 12px;
    color: #8b9990;
    margin-top: 28px;
}

/* =========================================
   LOGIN BRANDING
========================================= */

.spmb-login-page .spmb-login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 30px;
    text-align: center;
}

.spmb-login-page .spmb-login-panel .spmb-login-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 110px !important;
    object-fit: contain;
    margin: 0 auto 20px;
}

.spmb-login-page .spmb-login-brand .spmb-eyebrow {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 900px) {

    .spmb-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .spmb-sidebar {
        padding: 16px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .spmb-mark {
        width: 100%;
        margin: 0 0 12px;
    }

    .spmb-nav-caption,
    .spmb-side-bottom {
        display: none;
    }

    .spmb-nav {
        padding: 9px 12px;
        font-size: 12px;
    }

    .spmb-main {
        padding: 25px 18px;
    }

    .spmb-cards-three {
        grid-template-columns: minmax(0, 1fr);
    }

    .spmb-topbar h1 {
        font-size: 23px;
    }

    .spmb-profile span {
        display: none;
    }
}

/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 576px) {

    .spmb-login-page {
        padding: 28px 14px;
    }

    .spmb-login-panel {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .spmb-login-page .spmb-login-panel .spmb-login-logo {
        max-height: 85px !important;
    }

    .spmb-login-page .spmb-login-brand .spmb-eyebrow {
        font-size: 11px;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 500px) {

    .spmb-switch {
        display: block;
    }

    .spmb-switch label {
        display: block;
        margin-bottom: 8px;
    }

    .spmb-switch select {
        max-width: 100%;
        width: 100%;
    }

    .spmb-card {
        padding: 21px;
    }

    .spmb-topbar {
        margin-bottom: 25px;
    }

    .spmb-hero {
        padding: 25px;
    }

    .spmb-detail {
        gap: 10px;
    }

    .spmb-history {
        flex-wrap: wrap;
    }
}
