:root {
    --casa-blue: #00ADEE;
    --casa-blue-dark: #064F7D;
    --page-background: #F2F5F8;
    --text-color: #24313D;
    --border-color: #D4DCE3;
    --error-color: #B42318;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    background:
        linear-gradient(
            135deg,
            rgba(6, 79, 125, 0.08),
            rgba(6, 79, 125, 0.01)
        ),
        var(--page-background);
}

.login-page {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 430px;
    padding: 36px;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(20, 45, 65, 0.14);
}

.logo-area {
    margin-bottom: 24px;
    text-align: center;
}

.portal-logo {
    display: block;
    width: 105px;
    max-height: 145px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 16px;
}

.college-name {
    margin: 0;
    color: var(--casa-blue);
    font-size: 29px;
    font-weight: 700;
    letter-spacing: 1px;
}

.portal-title {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 600;
}

.semester {
    display: inline-block;
    margin-top: 12px;
    padding: 7px 14px;
    color: var(--casa-blue);
    background-color: #eaf3f8;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 19px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--text-color);
    font-size: 16px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--casa-blue);
    box-shadow: 0 0 0 3px rgba(6, 79, 125, 0.13);
}

.password-container {
    position: relative;
}

.password-container .form-control {
    padding-right: 78px;
}

.show-password-button {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: var(--casa-blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(-50%);
}

.login-button {
    width: 100%;
    padding: 13px 18px;
    border: 0;
    border-radius: 8px;
    background-color: var(--casa-blue);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s,
        transform 0.1s;
}

.login-button:hover {
    background-color: var(--casa-blue-dark);
}

.login-button:active {
    transform: translateY(1px);
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.error-message {
    margin-bottom: 18px;
    padding: 11px 13px;
    border: 1px solid #f5c2c0;
    border-radius: 7px;
    background-color: #fff1f0;
    color: var(--error-color);
    font-size: 14px;
}

.footer-text {
    margin: 25px 0 0;
    color: #687784;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .login-page {
        min-height: calc(100vh - 24px);
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 11px;
    }

    .portal-logo {
        width: 90px;
        max-height: 125px;
    }

    .college-name {
        font-size: 25px;
    }

    .portal-title {
        font-size: 18px;
    }
}

/* =========================================================
   Student Dashboard
   ========================================================= */

.results-card {
    width: 100%;
    max-width: 1050px;
}

.student-information {
    max-width: 720px;
    margin: 0 auto 30px;
    padding: 22px 25px;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background-color: #f7fafc;
}

.student-information h2 {
    margin: 0 0 20px;
    color: var(--casa-blue);
    text-align: center;
    font-size: 22px;
}

.student-details {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 11px 18px;
    margin: 0;
}

.student-details dt {
    color: var(--casa-blue-dark);
    font-weight: 700;
}

.student-details dd {
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.results-title {
    margin: 10px 0 18px;
    color: var(--casa-blue);
    text-align: center;
    font-size: 22px;
}

.results-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

.results-table th,
.results-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #dce3e8;
    text-align: center;
    white-space: nowrap;
}

.results-table th {
    background-color: var(--casa-blue);
    color: #ffffff;
    font-size: 14px;
}

.results-table td {
    font-size: 14px;
}

.results-table td.subject-name {
    min-width: 280px;
    text-align: left;
    white-space: normal;
}

.results-table th.final-grade-column {
    background-color: #033b60;
}

.results-table td.final-grade-column {
    background-color: #eef8fc;
    color: var(--casa-blue-dark);
    font-weight: 700;
}

.grade-badge {
    display: inline-block;
    min-width: 42px;
    padding: 5px 9px;
    border-radius: 14px;
    font-weight: 700;
}

.grade-excellent {
    color: #166534;
    background-color: #dcfce7;
}

.grade-good {
    color: #1d4ed8;
    background-color: #dbeafe;
}

.grade-average {
    color: #9a3412;
    background-color: #ffedd5;
}

.grade-fail {
    color: #b91c1c;
    background-color: #fee2e2;
}

.grade-neutral {
    color: #374151;
    background-color: #f3f4f6;
}

.no-results {
    margin: 25px 0;
    padding: 18px;
    border-radius: 8px;
    background-color: #eef5f9;
    text-align: center;
}


.logout-button {
    display: inline-block;
    width: auto;
    text-decoration: none;
}

@media (max-width: 700px) {
    .results-card {
        padding: 24px 16px;
    }

    .student-information {
        padding: 18px;
    }

    .student-details {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .student-details dd {
        margin-bottom: 12px;
    }

    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.logout-button {
    display: inline-block;
    width: auto;
    text-decoration: none;
}
    
@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }

    body {
        padding: 0;
        background: #ffffff;
        color: #000000;
    }

    .login-page {
        display: block;
        min-height: auto;
    }

    .login-card,
    .results-card {
        max-width: none;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .logo-area {
        margin-bottom: 18px;
    }

    .portal-logo {
        width: 75px;
        max-height: 95px;
        margin-bottom: 8px;
    }

    .college-name {
        font-size: 24px;
    }

    .portal-title {
        font-size: 17px;
    }

    .student-information {
        max-width: none;
        margin-bottom: 18px;
        padding: 14px 18px;
        background-color: #ffffff;
        border: 1px solid #999999;
    }

    .student-information h2,
    .results-title {
        color: #000000;
    }

    .student-details {
        grid-template-columns: 140px 1fr;
        gap: 6px 15px;
    }

    .student-details dt {
        color: #000000;
    }

    .results-table-wrapper {
        overflow: visible;
    }

    .results-table {
        page-break-inside: auto;
    }

    .results-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .results-table th {
        background-color: #dddddd !important;
        color: #000000 !important;
        border: 1px solid #777777;
    }

    .results-table td {
        border: 1px solid #aaaaaa;
    }

    .results-table td.final-grade-column {
        background-color: #eeeeee !important;
        color: #000000;
    }

    .grade-badge {
        padding: 0;
        color: #000000 !important;
        background: none !important;
    }

    .dashboard-actions {
        display: none;
    }

    .footer-text {
        margin-top: 18px;
        color: #000000;
    }
}    

/* =========================================================
   Administrator Dashboard
   ========================================================= */

.admin-page {
    min-height: 100vh;
    background-color: #f4f7fa;
    padding: 30px 15px;
}

.admin-container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

.admin-header {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--casa-blue);
}

.admin-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-logo {
    max-width: 180px;
    height: auto;
}

.admin-title {
    margin: 15px 0 5px;
    color: var(--casa-blue-dark);
}

.admin-subtitle {
    margin: 0;
    color: #5f6b75;
}

.admin-logout {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 7px;
    background-color: var(--casa-blue-dark);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.admin-logout:hover {
    background-color: #033b60;
}

.welcome-panel {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.welcome-panel h2 {
    margin-top: 0;
    color: var(--casa-blue-dark);
}

.semester-label {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: #e7f7fd;
    color: var(--casa-blue-dark);
    font-weight: 600;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-number {
    display: block;
    margin-bottom: 5px;
    color: var(--casa-blue);
    font-size: 2.2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--casa-blue-dark);
    font-size: 1.05rem;
    font-weight: 600;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.admin-action-card {
    display: block;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    color: var(--casa-blue-dark);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--casa-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.admin-action-card h3 {
    margin: 0 0 8px;
}

.admin-action-card p {
    margin: 0;
    color: #5f6b75;
}

.disabled-action {
    cursor: default;
    opacity: 0.65;
}

.disabled-action:hover {
    transform: none;
}

@media (max-width: 700px) {
    .admin-header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .statistics-grid,
    .admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-logo {
        max-width: 150px;
    }
}

/* =========================================================
   Student Portal Home
   ========================================================= */

.student-home-page {
    min-height: 100vh;
    padding: 30px 15px;
    background:
        linear-gradient(
            135deg,
            rgba(0, 173, 238, 0.08),
            rgba(6, 79, 125, 0.12)
        );
}

.student-home-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.student-home-header {
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(3, 59, 96, 0.12);
}

.student-home-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid #e6edf2;
}

.student-home-logo {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 75px;
}

.student-home-logout {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 7px;
    background-color: #064f7d;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.student-home-logout:hover {
    background-color: #033b60;
    transform: translateY(-1px);
}

.student-home-welcome {
    padding: 30px 28px;
    background:
        linear-gradient(
            135deg,
            #064f7d,
            #00adee
        );
    color: #ffffff;
}

.student-home-greeting {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.student-home-welcome h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.student-home-welcome p:last-child {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.student-information-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.student-information-item {
    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 6px 22px rgba(3, 59, 96, 0.1);
}

.student-information-label {
    display: block;
    margin-bottom: 7px;
    color: #657482;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-information-value {
    display: block;
    color: #064f7d;
    font-size: 1.05rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.student-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.student-service-card {
    display: flex;
    min-height: 290px;
    padding: 30px;
    border: 1px solid #dfe9f0;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(3, 59, 96, 0.1);
    flex-direction: column;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.student-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(3, 59, 96, 0.15);
}

.student-service-icon {
    display: flex;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    border-radius: 14px;
    background-color: rgba(0, 173, 238, 0.12);
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.student-service-card h2 {
    margin: 0 0 12px;
    color: #064f7d;
    font-size: 1.4rem;
}

.student-service-card p {
    margin: 0 0 25px;
    color: #566672;
    line-height: 1.65;
}

.student-service-button,
.student-service-button-disabled {
    display: inline-block;
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

.student-service-button {
    background-color: #00adee;
    color: #ffffff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.student-service-button:hover {
    background-color: #064f7d;
    transform: translateY(-1px);
}

.student-service-button-disabled {
    cursor: not-allowed;
    background-color: #e5ebef;
    color: #788690;
}

.student-home-footer {
    padding: 24px 0 5px;
    color: #657482;
    text-align: center;
}

.student-home-footer p {
    margin: 0;
}

@media (max-width: 800px) {
    .student-information-panel {
        grid-template-columns: 1fr;
    }

    .student-service-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .student-home-page {
        padding: 15px 10px;
    }

    .student-home-header-top {
        padding: 16px;
    }

    .student-home-logo {
        max-width: 160px;
        max-height: 60px;
    }

    .student-home-logout {
        padding: 9px 13px;
        font-size: 0.9rem;
    }

    .student-home-welcome {
        padding: 25px 18px;
    }

    .student-service-card {
        min-height: 250px;
        padding: 24px 20px;
    }
}

.dashboard-actions{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:30px;
    flex-wrap:wrap;
}
/* =========================================================
   Administrator Dashboard - Version 1.2
   ========================================================= */

.admin-dashboard-v12 {
    color: #24313d;
}

.admin-dashboard-header {
    border-top: 0;
    background:
        linear-gradient(135deg, rgba(0, 173, 238, 0.08), rgba(6, 79, 125, 0.02)),
        #ffffff;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.admin-eyebrow,
.section-kicker,
.dashboard-welcome-label {
    margin: 0 0 6px;
    color: #667785;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #cfeaf5;
    border-radius: 999px;
    background-color: #edf9fd;
    color: #064f7d;
    font-size: 0.85rem;
    font-weight: 700;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 22px;
    margin-bottom: 30px;
}

.dashboard-welcome,
.dashboard-status-grid,
.dashboard-panel {
    border: 1px solid #e1e9ef;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 7px 24px rgba(3, 59, 96, 0.08);
}

.dashboard-welcome {
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(6, 79, 125, 0.96), rgba(0, 173, 238, 0.88)),
        #064f7d;
    color: #ffffff;
}

.dashboard-welcome .dashboard-welcome-label {
    color: rgba(255, 255, 255, 0.78);
}

.dashboard-welcome h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.dashboard-welcome p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.55;
}

.dashboard-status-grid {
    display: grid;
    align-content: center;
    gap: 1px;
    overflow: hidden;
    background-color: #e7edf2;
}

.dashboard-status-item {
    padding: 22px 24px;
    background-color: #ffffff;
}

.dashboard-status-label {
    display: block;
    margin-bottom: 8px;
    color: #697985;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-status-item strong {
    color: #064f7d;
    font-size: 1.15rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.status-pill-small {
    padding: 5px 9px;
    font-size: 0.86rem;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: currentColor;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}

.status-open {
    background-color: #e7f7ed;
    color: #166534;
}

.status-closed {
    background-color: #feeceb;
    color: #b42318;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 15px;
}

.dashboard-section-title {
    margin: 0;
    color: #064f7d;
    font-size: 1.35rem;
}

.statistics-grid-v12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 32px;
}

.statistics-grid-v12 .stat-card {
    position: relative;
    overflow: hidden;
    min-height: 175px;
    padding: 24px;
    text-align: left;
    border: 1px solid #e2e9ee;
}

.statistics-grid-v12 .stat-card::after {
    position: absolute;
    right: -32px;
    bottom: -45px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background-color: rgba(0, 173, 238, 0.08);
    content: "";
}

.stat-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #edf8fc;
    font-size: 1.45rem;
}

.statistics-grid-v12 .stat-number {
    position: relative;
    z-index: 1;
    font-size: 2rem;
}

.statistics-grid-v12 .stat-label {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 4px;
}

.stat-card-students {
    border-top: 4px solid #00adee !important;
}

.stat-card-results {
    border-top: 4px solid #2f9e5b !important;
}

.stat-card-timetable {
    border-top: 4px solid #d8871e !important;
}

.admin-actions-v12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 32px;
}

.admin-actions-v12 .admin-action-card {
    min-height: 220px;
    border: 1px solid #dfe8ee;
    border-left: 1px solid #dfe8ee;
}

.admin-actions-v12 .admin-action-card:not(.disabled-action) {
    border-top: 4px solid #00adee;
}

.admin-action-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #edf8fc;
    font-size: 1.45rem;
}

.admin-action-link {
    display: inline-block;
    margin-top: 18px;
    color: #00adee;
    font-size: 0.9rem;
    font-weight: 700;
}

.coming-soon-badge {
    display: inline-flex;
    margin-top: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: #eef2f5;
    color: #687784;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-actions-v12 .disabled-action {
    border-top: 4px solid #aebac3;
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.dashboard-panel {
    padding: 25px;
}

.dashboard-panel-heading {
    margin-bottom: 18px;
}

.system-information-list {
    margin: 0;
}

.system-information-list > div {
    display: grid;
    grid-template-columns: minmax(145px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #e7edf2;
}

.system-information-list > div:last-child {
    border-bottom: 0;
}

.system-information-list dt {
    color: #637482;
    font-weight: 700;
}

.system-information-list dd {
    margin: 0;
    color: #064f7d;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.dashboard-information-note {
    display: flex;
    gap: 14px;
    padding: 18px;
    border: 1px solid #f2d39b;
    border-radius: 10px;
    background-color: #fff8e9;
    color: #654700;
}

.dashboard-information-note p,
.dashboard-stage-note p {
    margin: 0;
    line-height: 1.6;
}

.dashboard-note-icon {
    font-size: 1.35rem;
}

.dashboard-stage-note {
    margin-top: 18px;
    padding: 18px;
    border-radius: 10px;
    background-color: #f1f7fa;
    color: #4c6170;
}

.dashboard-stage-note strong {
    display: block;
    margin-bottom: 7px;
    color: #064f7d;
}

.admin-version-footer {
    padding: 28px 0 5px;
    color: #687784;
    text-align: center;
    font-size: 0.86rem;
}

.admin-version-footer p {
    margin: 4px 0;
}

@media (max-width: 900px) {
    .dashboard-overview,
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }

    .statistics-grid-v12,
    .admin-actions-v12 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header-controls {
        width: 100%;
        justify-content: space-between;
    }

    .statistics-grid-v12,
    .admin-actions-v12 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .admin-page {
        padding: 15px 10px;
    }

    .admin-header,
    .dashboard-welcome,
    .dashboard-status-item,
    .dashboard-panel,
    .statistics-grid-v12 .stat-card,
    .admin-actions-v12 .admin-action-card {
        padding: 20px;
    }

    .admin-header-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .version-badge,
    .admin-logout {
        justify-content: center;
        text-align: center;
    }

    .system-information-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

/* =========================================================
   Student Home - Version 1.2 Stage 3
   ========================================================= */

.student-home-v12 {
    color: #24313d;
}

.student-home-showcase-header {
    border: 1px solid #dfe8ee;
}

.student-home-brand,
.student-home-header-actions,
.student-service-card-top,
.student-section-heading-row {
    display: flex;
    align-items: center;
}

.student-home-brand {
    gap: 18px;
}

.student-home-eyebrow,
.student-section-kicker {
    margin: 0 0 5px;
    color: #6a7a87;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.student-home-brand-title {
    margin: 0;
    color: #064f7d;
    font-size: 1.15rem;
    font-weight: 700;
}

.student-home-header-actions {
    gap: 11px;
}

.student-version-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #cfeaf5;
    border-radius: 999px;
    background-color: #edf9fd;
    color: #064f7d;
    font-size: 0.84rem;
    font-weight: 700;
}

.student-home-welcome-v12 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.student-semester-panel {
    min-width: 230px;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(4px);
}

.student-semester-panel span,
.student-semester-panel strong {
    display: block;
}

.student-semester-panel span {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.student-semester-panel strong {
    color: #ffffff;
    font-size: 1.15rem;
}

.student-home-notice,
.student-home-error {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 10px;
    line-height: 1.55;
}

.student-home-notice {
    border: 1px solid #f0d49d;
    border-left: 5px solid #d8871e;
    background-color: #fff8e9;
    color: #654700;
}

.student-home-error {
    border: 1px solid #efb8b4;
    border-left: 5px solid #b42318;
    background-color: #fff1f0;
    color: #8f2118;
}

.student-home-section {
    margin-bottom: 24px;
    padding: 25px;
    border: 1px solid #e0e8ee;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 7px 24px rgba(3, 59, 96, 0.08);
}

.student-section-heading-row {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.student-section-heading-row h2 {
    margin: 0;
    color: #064f7d;
    font-size: 1.35rem;
}

.student-status-pill,
.student-service-state,
.student-today-count {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.student-status-pill {
    gap: 8px;
    padding: 8px 12px;
}

.student-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: currentColor;
}

.student-status-online,
.service-visible {
    background-color: #e7f7ed;
    color: #166534;
}

.student-status-offline,
.service-hidden {
    background-color: #feeceb;
    color: #b42318;
}

.student-information-panel-v12 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.student-information-panel-v12 .student-information-item {
    box-shadow: none;
    border: 1px solid #e1e9ef;
    background-color: #f8fafc;
}

.student-information-status {
    color: #166534;
}

.student-service-grid-v12 {
    gap: 20px;
}

.student-service-grid-v12 .student-service-card {
    min-height: 270px;
    box-shadow: none;
}

.student-service-card-timetable {
    border-top: 4px solid #00adee;
}

.student-service-card-results {
    border-top: 4px solid #2f9e5b;
}

.student-service-card-top {
    justify-content: space-between;
    gap: 15px;
}

.student-service-state {
    padding: 6px 10px;
}

.student-service-grid-v12 .student-service-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.student-home-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 22px;
}

.student-home-dashboard-grid .student-home-section {
    margin-bottom: 0;
}

.student-today-count {
    padding: 7px 11px;
    background-color: #edf8fc;
    color: #064f7d;
}

.student-today-list {
    display: grid;
    gap: 10px;
}

.student-today-item {
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid #e3ebf0;
    border-radius: 10px;
    background-color: #f8fafc;
}

.student-today-time {
    color: #064f7d;
    font-size: 1.05rem;
    font-weight: 700;
}

.student-today-time small {
    display: block;
    margin-top: 3px;
    color: #71808c;
    font-size: 0.76rem;
    font-weight: 600;
}

.student-today-module span,
.student-today-module strong {
    display: block;
}

.student-today-module span {
    margin-bottom: 3px;
    color: #00a0dc;
    font-size: 0.78rem;
    font-weight: 700;
}

.student-today-module strong {
    color: #24313d;
}

.student-today-room {
    min-width: 70px;
    padding: 7px 9px;
    border-radius: 8px;
    background-color: #eaf3f8;
    color: #064f7d;
    font-weight: 700;
    text-align: center;
}

.student-empty-state {
    padding: 25px;
    border: 1px dashed #cbd8e1;
    border-radius: 10px;
    background-color: #f8fafc;
    text-align: center;
}

.student-empty-state strong {
    display: block;
    margin-bottom: 7px;
    color: #064f7d;
}

.student-empty-state p {
    margin: 0;
    color: #657482;
    line-height: 1.55;
}

.student-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.student-summary-card {
    padding: 20px 14px;
    border: 1px solid #e2e9ee;
    border-radius: 11px;
    background-color: #f8fafc;
    text-align: center;
}

.student-summary-number,
.student-summary-label {
    display: block;
}

.student-summary-number {
    margin-bottom: 5px;
    color: #00a5e0;
    font-size: 2rem;
    font-weight: 700;
}

.student-summary-label {
    color: #064f7d;
    font-size: 0.85rem;
    font-weight: 700;
}

.student-summary-note {
    margin-top: 16px;
    padding: 16px;
    border-radius: 10px;
    background-color: #f1f7fa;
    color: #536774;
}

.student-summary-note strong {
    display: block;
    margin-bottom: 6px;
    color: #064f7d;
}

.student-summary-note p {
    margin: 0;
    line-height: 1.55;
}

.student-home-footer-v12 {
    font-size: 0.86rem;
}

.student-home-footer-v12 p {
    margin: 4px 0;
}

@media (max-width: 900px) {
    .student-home-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .student-information-panel-v12 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .student-home-welcome-v12 {
        grid-template-columns: 1fr;
    }

    .student-semester-panel {
        min-width: 0;
    }

    .student-section-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-today-item {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .student-today-room {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .student-home-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .student-home-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .student-version-badge,
    .student-home-logout {
        justify-content: center;
        text-align: center;
    }

    .student-information-panel-v12,
    .student-summary-grid {
        grid-template-columns: 1fr;
    }

    .student-home-section {
        padding: 20px;
    }
}

.student-home-welcome h1,
.student-home-welcome h1 *,
.student-home-welcome-v12 h1,
.student-home-welcome-v12 h1 * {
    color: #ffffff !important;
}