

:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #17233c;
    background: #f4f7fb;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient( circle at top right, rgba(45, 116, 210, 0.09), transparent 32% ), #f4f7fb;
    color: #17233c;
}

button,
input {
    font: inherit;
}

/* -------------------------------------------------------
   Main container
------------------------------------------------------- */

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

/* -------------------------------------------------------
   Sticky blue header
------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #102a56;
    color: #ffffff;
    border-bottom: 4px solid #1f5da8;
    box-shadow: 0 4px 18px rgba(9, 31, 66, 0.22);
}

.header-row {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
}

    .brand:hover {
        color: #ffffff;
        text-decoration: none;
    }

.subtitle {
    margin-top: 4px;
    color: #cad8ec;
    font-size: 0.92rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-label {
    display: grid;
    gap: 3px;
    text-align: right;
}

    .user-label strong {
        color: #ffffff;
    }

    .user-label span {
        color: #cad8ec;
        font-size: 0.85rem;
    }

/* -------------------------------------------------------
   Main page content
------------------------------------------------------- */

.main-content {
    position: relative;
    z-index: 1;
    padding-block: 28px 48px;
}

/* -------------------------------------------------------
   Standard cards
------------------------------------------------------- */

.card,
.form-card,
.auth-card {
    background: #ffffff;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(16, 42, 86, 0.08);
}

.card {
    padding: 24px;
}

.form-card {
    width: min(660px, 100%);
    margin-inline: auto;
    padding: 28px;
}

.auth-card {
    width: min(480px, 100%);
    margin: 45px auto;
    padding: 30px;
}

/* -------------------------------------------------------
   Typography
------------------------------------------------------- */

h1,
h2 {
    color: #102a56;
}

h1 {
    margin: 0 0 8px;
}

h2 {
    margin: 0 0 6px;
    font-size: 1.15rem;
}

p {
    line-height: 1.55;
}

.muted {
    color: #66758a;
}

/* -------------------------------------------------------
   Forms
------------------------------------------------------- */

.form-stack {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.field {
    display: grid;
    gap: 7px;
}

label {
    color: #24344f;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b8c5d6;
    border-radius: 9px;
    padding: 10px 12px;
    background: #ffffff;
    color: #17233c;
}

    input:focus {
        border-color: #1e5da8;
        outline: 3px solid rgba(30, 93, 168, 0.16);
    }

small {
    color: #68778b;
}

/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

    .button:hover {
        transform: translateY(-1px);
    }

.button-primary {
    background: #174f91;
    color: #ffffff;
}

    .button-primary:hover {
        background: #123f76;
        color: #ffffff;
    }

.button-secondary {
    background: #e8eef6;
    color: #173d6d;
}

    .button-secondary:hover {
        background: #dce6f2;
        color: #102f59;
    }

.button-light {
    background: #ffffff;
    color: #102a56;
}

    .button-light:hover {
        background: #eaf1fa;
        color: #102a56;
    }

.button-wide {
    width: 100%;
}

/* -------------------------------------------------------
   Alerts and validation
------------------------------------------------------- */

.info-note,
.alert {
    margin-block: 16px;
    border-radius: 9px;
    padding: 13px 15px;
    line-height: 1.5;
}

.info-note {
    border-left: 4px solid #2e6fb6;
    background: #f7faff;
    color: #44536a;
}

.alert-info {
    border: 1px solid #a9cbed;
    background: #edf6ff;
    color: #174f7e;
}

.alert-success {
    border: 1px solid #acdabe;
    background: #e7f7ed;
    color: #165d36;
}

.alert-warning {
    border: 1px solid #e5c36a;
    background: #fff8df;
    color: #725000;
}

.validation-summary,
.validation-message {
    color: #a51d2d;
}

    .validation-summary:empty,
    .validation-message:empty {
        display: none;
    }

/* -------------------------------------------------------
   Headings and standard dashboard
------------------------------------------------------- */

.dashboard-heading,
.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    display: flex;
    gap: 16px;
    align-items: center;
    border: 1px solid #dce4ef;
    border-radius: 14px;
    padding: 22px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(16, 42, 86, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .dashboard-card:hover {
        border-color: #5c89bd;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(16, 42, 86, 0.11);
    }

.dashboard-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eaf2fc;
    color: #174f91;
    font-size: 1.45rem;
    font-weight: 900;
}

/* -------------------------------------------------------
   Date filter
------------------------------------------------------- */

.date-filter {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(150px, 220px) auto;
    align-items: end;
    gap: 12px;
    margin-block: 18px 22px;
}

/* -------------------------------------------------------
   Tables
------------------------------------------------------- */

.table-wrap,
.table-responsive {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 13px 15px;
    border-bottom: 1px solid #e7ecf3;
    text-align: left;
    white-space: nowrap;
}

th {
    background: #f7f9fc;
    color: #44536a;
    font-size: 0.79rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

tbody tr:hover {
    background: #f7faff;
}

tbody tr:last-child td {
    border-bottom: 0;
}

.empty-panel {
    border: 1px dashed #bcc8d8;
    border-radius: 10px;
    padding: 28px;
    color: #68778b;
    text-align: center;
}

/* -------------------------------------------------------
   Futuristic dashboard hero
------------------------------------------------------- */

.future-hero {
    position: relative;

    overflow: hidden;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid rgba(121, 183, 255, 0.18);
    border-radius: 20px;
    background: linear-gradient( 135deg, #0b1c3c 0%, #12346b 48%, #1b65bb 100% );
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(10, 34, 78, 0.24);
}

    .future-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 115deg, transparent 0%, rgba(255, 255, 255, 0.06) 45%, transparent 62% );
        pointer-events: none;
    }

.future-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.future-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.35;
    pointer-events: none;
}

.future-hero__glow--one {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -50px;
    background: #4ed8ff;
}

.future-hero__glow--two {
    width: 180px;
    height: 180px;
    bottom: -60px;
    left: -40px;
    background: #6f8cff;
}

.future-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.future-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
}

.future-subtitle {
    margin: 0;
    color: #dce9ff;
    font-size: 1rem;
}

.future-id-box {
    min-width: 220px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.12);
}

.future-id-label {
    color: #cfe2ff;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.future-id-value {
    margin-top: 6px;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
}

/* -------------------------------------------------------
   Futuristic dashboard buttons
   Vertical order:
   Personal Info
   My Attendance
   My eCash
   Student Ledger
   Transaction History
   Logout
------------------------------------------------------- */

.future-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.future-card {
    position: relative;
    display: block;
    min-height: 142px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #d8e4f4;
    border-radius: 18px;
    background: linear-gradient( 180deg, #ffffff 0%, #f4f8ff 100% );
    color: #17233c;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(16, 42, 86, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .future-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: linear-gradient( 180deg, #2ec5ff 0%, #295bff 100% );
    }

    .future-card::after {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        top: -95px;
        right: -65px;
        border-radius: 50%;
        background: rgba(51, 139, 255, 0.08);
        pointer-events: none;
    }

    .future-card:hover {
        transform: translateY(-4px);
        border-color: #7fb6ff;
        box-shadow: 0 18px 38px rgba(16, 42, 86, 0.14);
    }

    .future-card:focus-visible {
        outline: 3px solid rgba(34, 111, 201, 0.28);
        outline-offset: 3px;
    }

.future-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient( 135deg, #eaf4ff 0%, #dce9ff 100% );
    color: #174f91;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #d1e2fb;
}

.future-card__title {
    display: block;
    margin-bottom: 8px;
    color: #102a56;
    font-size: 1.15rem;
    font-weight: 800;
}

.future-card__text {
    display: block;
    color: #5a6d86;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* -------------------------------------------------------
   Logout dashboard card
------------------------------------------------------- */

.future-card--logout {
    min-height: 142px;
    padding: 0;
    background: linear-gradient( 135deg, #fff7f8 0%, #ffe9ed 100% );
}

    .future-card--logout::before {
        background: linear-gradient( 180deg, #ff7a7a 0%, #d92b45 100% );
    }

    .future-card--logout::after {
        background: rgba(217, 43, 69, 0.07);
    }

.future-card__button {
    width: 100%;
    min-height: 142px;
    display: block;
    border: 0;
    padding: 22px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .future-card__button:focus-visible {
        outline: 3px solid rgba(217, 43, 69, 0.22);
        outline-offset: -3px;
    }

.future-card--logout .future-card__title {
    color: #a51d2d;
}

.future-card--logout .future-card__icon {
    background: #ffe1e6;
    color: #b52039;
    box-shadow: inset 0 0 0 1px #f4bdc7;
}

/* -------------------------------------------------------
   Responsive design
------------------------------------------------------- */

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1120px);
    }

    .header-row {
        min-height: 72px;
        gap: 12px;
    }


    .brand {
        font-size: 1.12rem;
    }

    .subtitle,
    .user-label {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-content {
        padding-block: 20px 36px;
    }

    .dashboard-grid,
    .date-filter {
        grid-template-columns: 1fr;
    }

    .dashboard-heading,
    .card-heading {
        display: grid;
    }

    .card,
    .form-card,
    .auth-card {
        padding: 20px;
    }

    .auth-card {
        margin-block: 24px;
    }

    .future-hero {
        padding: 22px;
        border-radius: 16px;
    }

    .future-title {
        font-size: 1.55rem;
    }

    .future-id-box {
        width: 100%;
        min-width: 0;
    }

    .future-card,
    .future-card--logout,
    .future-card__button {
        min-height: 132px;
    }

    th,
    td {
        padding: 11px 12px;
    }
}

@media (max-width: 430px) {
    .container {
        width: min(100% - 16px, 1120px);
    }

    .site-header {
        border-bottom-width: 3px;
    }

    .button {
        padding-inline: 13px;
    }

    .future-hero {
        padding: 19px;
    }

    .future-card,
    .future-card__button {
        padding: 18px;
    }

    .future-card__icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        font-size: 1.35rem;
    }

    .profile-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .profile-item {
        display: grid;
        gap: 7px;
        min-height: 105px;
        padding: 18px;
        border: 1px solid #dce5f1;
        border-radius: 14px;
        background: linear-gradient( 145deg, #ffffff 0%, #f3f8ff 100% );
    }

    .profile-label {
        color: #68778b;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.045em;
        text-transform: uppercase;
    }

    .profile-value {
        color: #102a56;
        font-size: 1.1rem;
        overflow-wrap: anywhere;
    }

    @media (max-width: 760px) {
        .profile-grid {
            grid-template-columns: 1fr;
        }
    }

}

/* =======================================================
   STUDENT DASHBOARD WITH LEFT MENU AND RIGHT NEWSFEED
======================================================= */

.portal-dashboard-layout {
    display: grid;
    grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

/* Left fixed/sticky panel */

.portal-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 16px;
}

.sidebar-profile {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 20px;
    background: radial-gradient( circle at top right, rgba(70, 213, 255, 0.35), transparent 38% ), linear-gradient( 145deg, #0b1d3d 0%, #123d79 60%, #1767b9 100% );
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(13, 42, 90, 0.24);
}

    .sidebar-profile::after {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        right: -70px;
        bottom: -80px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
    }

.sidebar-profile__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #ddecff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.sidebar-profile__avatar {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.sidebar-profile__name {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.3;
}

.sidebar-profile__code {
    position: relative;
    z-index: 1;
    color: #d9e8ff;
    font-size: 0.92rem;
}

/* Left navigation */

.sidebar-menu {
    display: grid;
    gap: 10px;
}

.sidebar-menu__item {
    width: 100%;
    min-height: 74px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    border: 1px solid #dce6f3;
    border-radius: 15px;
    background: linear-gradient( 145deg, #ffffff 0%, #f4f8ff 100% );
    color: #17233c;
    text-align: left;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(16, 42, 86, 0.07);
    cursor: pointer;
    transition: transform 0.17s ease, border-color 0.17s ease, box-shadow 0.17s ease;
}

    .sidebar-menu__item:hover {
        transform: translateX(4px);
        border-color: #73a8e4;
        box-shadow: 0 12px 28px rgba(16, 42, 86, 0.12);
    }

    .sidebar-menu__item:focus-visible {
        outline: 3px solid rgba(40, 112, 201, 0.24);
        outline-offset: 2px;
    }

.sidebar-menu__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #e7f1ff;
    color: #174f91;
    font-size: 1.3rem;
}

.sidebar-menu__item strong {
    display: block;
    margin-bottom: 4px;
    color: #102a56;
    font-size: 0.97rem;
}

.sidebar-menu__item small {
    display: block;
    color: #6a7890;
    font-size: 0.79rem;
    line-height: 1.35;
}

.sidebar-menu__arrow {
    color: #7692b5;
    font-size: 1.65rem;
    line-height: 1;
}

.sidebar-logout {
    margin: 0;
}

.sidebar-menu__item--logout {
    border-color: #f0cbd1;
    background: linear-gradient( 145deg, #fffafa 0%, #fff0f2 100% );
}

    .sidebar-menu__item--logout .sidebar-menu__icon {
        background: #ffe1e6;
        color: #b52039;
    }

    .sidebar-menu__item--logout strong {
        color: #a51d2d;
    }

/* Right newsfeed */

.portal-newsfeed {
    min-width: 0;
    display: grid;
    gap: 20px;
}

.newsfeed-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border: 1px solid #dce5f1;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 42, 86, 0.08);
}

.newsfeed-header__label {
    margin-bottom: 6px;
    color: #1f63ad;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.newsfeed-header h2 {
    margin: 0 0 7px;
    font-size: 1.65rem;
}

.newsfeed-header p {
    margin: 0;
    color: #66758a;
}

.newsfeed-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #eaf7ee;
    color: #17603a;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

    .newsfeed-live span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #26a764;
        box-shadow: 0 0 0 4px rgba(38, 167, 100, 0.14);
    }

.newsfeed-card {
    overflow: hidden;
    border: 1px solid #dce5f1;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(16, 42, 86, 0.08);
}

.newsfeed-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 17px 20px;
    border-bottom: 1px solid #e8edf4;
}

.newsfeed-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.newsfeed-author__logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient( 145deg, #12356c, #2474c5 );
    color: #ffffff;
    font-size: 0.83rem;
    font-weight: 900;
}

.newsfeed-author strong,
.newsfeed-author span {
    display: block;
}

.newsfeed-author strong {
    color: #102a56;
}

.newsfeed-author span,
.newsfeed-card time {
    margin-top: 3px;
    color: #77859a;
    font-size: 0.78rem;
}

.newsfeed-card__content {
    padding: 22px;
}

    .newsfeed-card__content h3 {
        margin: 8px 0 10px;
        color: #102a56;
        font-size: 1.25rem;
    }

    .newsfeed-card__content p {
        margin: 0;
        color: #596a82;
    }

.newsfeed-category {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f3ff;
    color: #195898;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.newsfeed-image-placeholder {
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 30px;
    background: linear-gradient( 135deg, #eaf3ff 0%, #f8fbff 48%, #e8f2ff 100% );
    color: #40536e;
    text-align: center;
}

.newsfeed-image-placeholder__icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin-bottom: 5px;
    border: 1px solid #c6d9ee;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    font-size: 2rem;
}

.newsfeed-image-placeholder strong {
    color: #102a56;
    font-size: 1.15rem;
}

.newsfeed-image-placeholder span {
    color: #68778b;
}

.newsfeed-empty {
    padding: 38px 24px;
    border: 1px dashed #b8c8dc;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
    color: #64748a;
    text-align: center;
}

.newsfeed-empty__icon {
    margin-bottom: 8px;
    color: #2672bf;
    font-size: 2rem;
}

.newsfeed-empty h3 {
    margin: 0 0 7px;
    color: #102a56;
}

.newsfeed-empty p {
    max-width: 550px;
    margin: 0 auto;
}

/* Tablet */

@media (max-width: 980px) {
    .portal-dashboard-layout {
        grid-template-columns: minmax(260px, 310px) minmax(0, 1fr);
        gap: 18px;
    }
}

/* Mobile */

@media (max-width: 760px) {
    .portal-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: static;
    }

    .newsfeed-header {
        display: grid;
    }

    .newsfeed-live {
        width: fit-content;
    }

    .newsfeed-image-placeholder {
        min-height: 230px;
    }
}

/* Student dashboard summary */

.student-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.student-summary__card {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 1px solid #d5e3f3;
    border-radius: 18px;
    background: linear-gradient( 145deg, #ffffff 0%, #edf5ff 100% );
    box-shadow: 0 12px 30px rgba(16, 42, 86, 0.09);
}

    .student-summary__card::after {
        content: "";
        position: absolute;
        width: 100px;
        height: 100px;
        top: -55px;
        right: -45px;
        border-radius: 50%;
        background: rgba(39, 119, 210, 0.09);
    }

.student-summary__icon {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient( 145deg, #dcebff 0%, #c9e0ff 100% );
    color: #174f91;
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 1px #bfd8f6;
}

.student-summary__label {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 7px;
    color: #6b7890;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.student-summary__value {
    position: relative;
    z-index: 1;
    display: block;
    color: #102a56;
    font-size: 1.1rem;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .student-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .student-summary {
        gap: 12px;
        margin-bottom: 18px;
    }

    .student-summary__card {
        min-height: 96px;
        padding: 16px;
    }

    .student-summary__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
}
/* Newsfeed account summary */

.newsfeed-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.newsfeed-stat {
    position: relative;
    overflow: hidden;
    min-width: 0;
    min-height: 118px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid #d8e4f2;
    border-radius: 17px;
    background: linear-gradient( 145deg, #ffffff 0%, #eef6ff 100% );
    box-shadow: 0 10px 26px rgba(16, 42, 86, 0.08);
}

    .newsfeed-stat::after {
        content: "";
        position: absolute;
        width: 90px;
        height: 90px;
        top: -48px;
        right: -42px;
        border-radius: 50%;
        background: rgba(39, 119, 210, 0.09);
    }

.newsfeed-stat__icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient( 145deg, #dcecff 0%, #c8dfff 100% );
    color: #174f91;
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px #bdd7f5;
}

.newsfeed-stat__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.newsfeed-stat__label {
    display: block;
    margin-bottom: 7px;
    color: #69778c;
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.newsfeed-stat__value {
    display: block;
    color: #102a56;
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
    .newsfeed-stats {
        grid-template-columns: 1fr;
    }

    @media (max-width: 1050px) {
        .newsfeed .newsfeed-stat {
            min-height: 92px;
        }
    }

    @media (max-width: 760px) {
        .newsfeed-stats {
            gap: 11px;
        }

        .newsfeed-stat {
            padding: 15px;
        }
    }


    /* Plain student account feed — no cards or boxes */



    .student-feed-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 18px 4px;
        border-bottom: 1px solid #dce5f1;
    }

        .student-feed-item:last-child {
            border-bottom: 0;
        }

    .student-feed-label {
        color: #66758a;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .student-feed-value {
        color: #102a56;
        font-size: 1rem;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .newsfeed-posts:empty {
        display: none;
    }

    @media (max-width: 760px) {
        .student-feed-item {
            display: grid;
            gap: 6px;
            padding-block: 15px;
        }

        .student-feed-value {
            text-align: left;
        }
    }

    .student-account-feed {
        display: grid;
        gap: 6px;
        padding: 4px 0;
    }

    .student-account-feed {
        display: block;
        padding: 4px 0;
    }

    .student-feed-line {
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin: 0;
        color: #17233c;
        font-size: 1rem;
        line-height: 1.5;
    }

        .student-feed-line + .student-feed-line {
            margin-top: 14px;
        }

        .student-feed-line span,
        .student-feed-line strong {
            margin: 0;
        }

        .student-feed-line strong {
            color: #102a56;
            font-weight: 800;
        }

        .student-feed-line span {
            margin: 0;
        }

        .student-feed-line strong {
            margin-left: 4px;
            color: #102a56;
        }

    /* Statement of Account newsfeed image */

    .soa-feed {
        margin-top: 28px;
    }

    .soa-feed__heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
    }

        .soa-feed__heading h2 {
            margin: 4px 0 0;
            color: #102a56;
            font-size: 1.35rem;
        }

    .soa-feed__label {
        color: #1f63ad;
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.09em;
    }

    .soa-feed__image {
        display: block;
        width: 100%;
        height: auto;
        border: 1px solid #dce5f1;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(16, 42, 86, 0.10);
    }

    .soa-feed__missing {
        padding: 28px;
        border: 1px dashed #b8c8dc;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.65);
        color: #66758a;
        text-align: center;
    }

    @media (max-width: 760px) {
        .soa-feed__heading {
            display: grid;
            gap: 14px;
        }

            .soa-feed__heading .button {
                width: 100%;
            }
    }


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

    .modern-login {
        padding: 24px 0 44px;
    }

    .modern-login__shell {
        width: min(1080px, 100%);
        min-height: 650px;
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
        margin-inline: auto;
        overflow: hidden;
        border: 1px solid #d3dfed;
        border-radius: 26px;
        background: #ffffff;
        box-shadow: 0 30px 80px rgba(15, 45, 93, 0.16), 0 8px 24px rgba(15, 45, 93, 0.08);
    }

    /* Left panel */

    .modern-login__brand {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        padding: 50px;
        background: radial-gradient( circle at top right, rgba(60, 208, 255, 0.30), transparent 38% ), radial-gradient( circle at bottom left, rgba(69, 83, 255, 0.24), transparent 34% ), linear-gradient( 145deg, #071a3b 0%, #103770 52%, #176abe 100% );
        color: #ffffff;
    }

        .modern-login__brand::after {
            content: "";
            position: absolute;
            inset: 0;
            background-image: linear-gradient( rgba(255, 255, 255, 0.025) 1px, transparent 1px ), linear-gradient( 90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px );
            background-size: 34px 34px;
            pointer-events: none;
        }

    .modern-login__brand-content,
    .modern-login__brand-footer {
        position: relative;
        z-index: 1;
    }

    .modern-login__logo {
        width: 70px;
        height: 70px;
        display: grid;
        place-items: center;
        margin-bottom: 26px;
        border: 1px solid rgba(255, 255, 255, 0.32);
        border-radius: 21px;
        background: rgba(255, 255, 255, 0.13);
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 900;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 34px rgba(0, 0, 0, 0.15);
    }

    .modern-login__eyebrow {
        display: block;
        margin-bottom: 12px;
        color: #a8dcff;
        font-size: 0.76rem;
        font-weight: 900;
        letter-spacing: 0.16em;
    }

    .modern-login__brand h1 {
        max-width: 480px;
        margin: 0 0 18px;
        color: #ffffff;
        font-size: clamp(2.1rem, 4vw, 3.2rem);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .modern-login__intro {
        max-width: 500px;
        margin: 0;
        color: #d8e8fb;
        font-size: 1.02rem;
        line-height: 1.7;
    }

    .modern-login__features {
        display: grid;
        gap: 17px;
        margin-top: 38px;
    }

    .modern-login__feature {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
    }

    .modern-login__feature-icon {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(255, 255, 255, 0.20);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.10);
        font-size: 1.25rem;
    }

    .modern-login__feature strong,
    .modern-login__feature small {
        display: block;
    }

    .modern-login__feature strong {
        margin-bottom: 4px;
        color: #ffffff;
        font-size: 0.96rem;
    }

    .modern-login__feature small {
        color: #c8dbf2;
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .modern-login__brand-footer {
        margin-top: 38px;
        color: rgba(226, 240, 255, 0.70);
        font-size: 0.76rem;
    }

    /* Right panel */

    .modern-login__form-panel {
        display: grid;
        place-items: center;
        padding: 45px 50px;
        background: radial-gradient( circle at top right, rgba(45, 127, 217, 0.08), transparent 35% ), #ffffff;
    }

    .modern-login__form-wrapper {
        width: min(420px, 100%);
    }

    .modern-login__mobile-brand {
        display: none;
        align-items: center;
        gap: 12px;
        margin-bottom: 26px;
        color: #102a56;
    }

    .modern-login__mobile-logo {
        width: 46px;
        height: 46px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: linear-gradient(145deg, #10366f, #2477c8);
        color: #ffffff;
        font-weight: 900;
    }

    .modern-login__heading {
        margin-bottom: 24px;
    }

        .modern-login__heading > span {
            display: block;
            margin-bottom: 8px;
            color: #2269b2;
            font-size: 0.74rem;
            font-weight: 900;
            letter-spacing: 0.14em;
        }

        .modern-login__heading h2 {
            margin: 0 0 9px;
            color: #102a56;
            font-size: 2rem;
        }

        .modern-login__heading p {
            margin: 0;
            color: #68778b;
            line-height: 1.55;
        }

    .modern-login__notice {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 25px;
        padding: 15px;
        border: 1px solid #d8e7f8;
        border-left: 4px solid #2f78c5;
        border-radius: 12px;
        background: #f3f8ff;
    }

    .modern-login__notice-icon {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        background: #dcecff;
        color: #16599c;
        font-weight: 900;
    }

    .modern-login__notice strong {
        display: block;
        margin-bottom: 4px;
        color: #183b69;
        font-size: 0.88rem;
    }

    .modern-login__notice p {
        margin: 0;
        color: #5f718a;
        font-size: 0.81rem;
        line-height: 1.5;
    }

    .modern-login__form {
        display: grid;
        gap: 18px;
    }

    .modern-login__field {
        display: grid;
        gap: 8px;
    }

        .modern-login__field label {
            color: #203652;
            font-size: 0.88rem;
            font-weight: 800;
        }

    .modern-login__input {
        position: relative;
        display: flex;
        align-items: center;
    }

        .modern-login__input input {
            width: 100%;
            min-height: 53px;
            padding: 12px 64px 12px 49px;
            border: 1px solid #bdcadb;
            border-radius: 12px;
            background: #ffffff;
            color: #17233c;
            box-shadow: 0 5px 15px rgba(20, 53, 99, 0.04);
        }

            .modern-login__input input:focus {
                border-color: #2e76c2;
                outline: none;
                box-shadow: 0 0 0 4px rgba(46, 118, 194, 0.13), 0 8px 20px rgba(20, 53, 99, 0.07);
            }

    .modern-login__input-icon {
        position: absolute;
        left: 15px;
        z-index: 2;
        width: 24px;
        display: grid;
        place-items: center;
        font-size: 1rem;
        pointer-events: none;
    }

    .modern-login__password-toggle {
        position: absolute;
        right: 9px;
        z-index: 3;
        min-width: 48px;
        height: 36px;
        border: 0;
        border-radius: 9px;
        background: #edf4fc;
        color: #315d8f;
        font-size: 0.75rem;
        font-weight: 800;
        cursor: pointer;
    }

        .modern-login__password-toggle:hover {
            background: #dfeefa;
        }

    .modern-login__validation {
        padding: 11px 13px;
        border: 1px solid #efc1c7;
        border-radius: 10px;
        background: #fff1f3;
        color: #a51d2d;
        font-size: 0.84rem;
    }

        .modern-login__validation:empty,
        .modern-login__field-error:empty {
            display: none;
        }

        .modern-login__validation ul {
            margin: 0;
            padding-left: 18px;
        }

    .modern-login__field-error {
        color: #a51d2d;
        font-size: 0.78rem;
    }

    .modern-login__submit {
        min-height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 3px;
        border: 0;
        border-radius: 12px;
        padding: 12px 20px;
        background: linear-gradient(135deg, #123c7a, #1c69b9);
        color: #ffffff;
        font-weight: 800;
        cursor: pointer;
        box-shadow: 0 13px 27px rgba(24, 90, 162, 0.24);
        transition: transform 0.17s ease, box-shadow 0.17s ease;
    }

        .modern-login__submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 17px 32px rgba(24, 90, 162, 0.30);
        }

    .modern-login__security {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        margin-top: 23px;
        color: #78879a;
        font-size: 0.76rem;
        text-align: center;
    }

    /* Responsive login */

    @media (max-width: 900px) {
        .modern-login__shell {
            grid-template-columns: minmax(300px, 0.8fr) minmax(390px, 1fr);
        }

        .modern-login__brand {
            padding: 40px 32px;
        }

        .modern-login__form-panel {
            padding-inline: 36px;
        }
    }

    @media (max-width: 760px) {
        .modern-login {
            padding-top: 4px;
        }

        .modern-login__shell {
            min-height: 0;
            grid-template-columns: 1fr;
            border-radius: 20px;
        }

        .modern-login__brand {
            display: none;
        }

        .modern-login__form-panel {
            padding: 30px 24px;
        }

        .modern-login__mobile-brand {
            display: flex;
        }

        .modern-login__heading h2 {
            font-size: 1.7rem;
        }
    }

    @media (max-width: 430px) {
        .modern-login__form-panel {
            padding: 25px 18px;
        }

        .modern-login__notice {
            grid-template-columns: 1fr;
        }

        .modern-login__notice-icon {
            display: none;
        }
    }


    .soa-upload-form {
        max-width: 720px;
    }

    .soa-preview-panel {
        margin-top: 20px;
        padding: 18px;
        border: 1px solid #dce5f1;
        border-radius: 14px;
        background: #f7faff;
    }

    .soa-preview-image {
        display: block;
        width: 100%;
        max-height: 560px;
        object-fit: contain;
        border: 1px solid #dce5f1;
        border-radius: 10px;
        background: #ffffff;
    }

    .student-menu-card {
        display: flex;
        align-items: center;
        gap: 16px;
        width: 100%;
        min-height: 88px;
        margin-bottom: 13px;
        padding: 14px 18px;
        border: 1px solid #d8e3f2;
        border-radius: 20px;
        background: #ffffff;
        color: #102c5b;
        text-decoration: none;
        box-shadow: 0 8px 22px rgba(22, 54, 94, 0.06);
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

        .student-menu-card:hover {
            color: #102c5b;
            text-decoration: none;
            border-color: #84b9ee;
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(22, 83, 145, 0.13);
        }

    .student-menu-card__icon {
        display: grid;
        place-items: center;
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
        border-radius: 17px;
        background: #e8f2ff;
        color: #075fa9;
        font-size: 0.82rem;
        font-weight: 900;
    }

    .student-menu-card__content {
        display: flex;
        flex: 1;
        min-width: 0;
        flex-direction: column;
        gap: 5px;
    }

        .student-menu-card__content strong {
            color: #102c5b;
            font-size: 1.05rem;
            font-weight: 800;
        }

        .student-menu-card__content small {
            color: #71809c;
            font-size: 0.92rem;
        }

    .student-menu-card__arrow {
        color: #6b94bf;
        font-size: 2rem;
        font-weight: 300;
        line-height: 1;
    }

    .employee-module-icon {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        border-radius: 14px;
        background: #e8f2ff;
        color: #075fa9;
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.02em;
    }

    .card a:hover .card,
    a:hover > .card {
        border-color: #83b9ed !important;
        box-shadow: 0 10px 24px rgba(18, 78, 139, 0.13) !important;
        transform: translateY(-2px);
    }

    a > .card {
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .header-brand {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-subtitle {
        margin-top: 4px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 0.95rem;
        font-weight: 500;
        line-height: 1.2;
    }

    .payment-history-summary {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin: 4px 0 18px;
        padding: 9px 14px;
        border: 1px solid #cfe0f2;
        border-radius: 10px;
        background: #f2f7fd;
        color: #536b86;
    }

        .payment-history-summary strong {
            color: #0d4f92;
            font-size: 1.1rem;
        }

    .ledger-summary {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin: 4px 0 18px;
        padding: 9px 14px;
        border: 1px solid #cfe0f2;
        border-radius: 10px;
        background: #f2f7fd;
        color: #536b86;
    }

        .ledger-summary strong {
            color: #0d4f92;
            font-size: 1.1rem;
        }

    .ledger-table .amount-column {
        text-align: right;
        white-space: nowrap;
    }

    .ledger-balance-row {
        background: #eaf3ff;
        border-top: 2px solid #1768b3;
    }

        .ledger-balance-row td {
            color: #0d3568;
            font-weight: 900;
        }

        .ledger-balance-row .amount-column {
            font-size: 1.05rem;
        }
