﻿
/* =========================================================
   AOU EXPECTED GRADUATION 2027
   Shared stylesheet for all pages
========================================================= */

/* ===================== THEME & RESET ===================== */

:root {
    --aou-navy: #00264d;
    --aou-blue: #093254;
    --aou-gold: #e6b323;
    --aou-light: #f3f5f8;
    --aou-text: #263445;
    --aou-border: #dce3eb;
    --aou-danger: #b42318;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 25px;
    background: var(--aou-light);
    font-family: Arial, Tahoma, sans-serif;
    color: var(--aou-text);
}

/* ===================== COMMON LOGO ===================== */

.aou-logo {
    display: block;
    width: 145px;
    height: 72px;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/* ===================== LOGIN PAGE ===================== */

.login-container {
    width: 100%;
    max-width: 440px;
    margin: 5vh auto;
}

.login-card {
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 38, 77, .12);
}

.login-header {
    position: relative;
    min-height: 155px;
    padding: 30px 24px 26px;
    background: var(--aou-navy);
    color: #fff;
    text-align: center;
    border-bottom: 4px solid var(--aou-gold);
}

    .login-header .aou-logo {
        width: 150px;
        height: 75px;
        max-width: 40%;
        margin: 0;
        padding: 6px 0;
        object-position: left center;
    }

.graduation-icon {
    position: absolute;
    top: 22px;
    right: 22px;
    font-size: 42px;
    line-height: 1;
}

.login-heading {
    margin-top: 10px;
}

    .login-heading h1,
    .login-header h1 {
        margin: 0 0 10px;
        color: #fff;
        font-size: 25px;
        font-weight: 700;
    }

    .login-heading p,
    .login-header p {
        margin: 0;
        color: #e1eaf4;
        font-size: 14px;
    }

.login-body {
    padding: 30px;
}

.form-label {
    color: var(--aou-blue);
    font-weight: 700;
}

.form-control {
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
}

    .form-control:focus {
        border-color: var(--aou-blue);
        box-shadow: 0 0 0 3px rgba(9, 50, 84, .12);
    }

.login-button {
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--aou-navy);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .login-button:hover {
        background: var(--aou-blue);
        color: #fff;
    }

.login-footer {
    padding: 0 20px 24px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.validation-summary-errors {
    margin-bottom: 20px;
    padding: 12px;
    background: #fff1f0;
    color: var(--aou-danger);
    border: 1px solid #fecdca;
    border-radius: 6px;
    font-size: 14px;
}

    .validation-summary-errors ul {
        margin-bottom: 0;
    }

.field-validation-error {
    color: var(--aou-danger);
    font-size: 13px;
}

.validation-message {
    display: block;
    margin-top: 8px;
    color: var(--aou-danger);
}

/* ===================== DECLARATION PAGE ===================== */

.declaration-card {
    width: 100%;
    max-width: 800px;
    margin: 4vh auto;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 38, 77, .12);
}

.declaration-header {
    position: relative;
    padding: 24px;
    background: var(--aou-navy);
    color: #fff;
    text-align: center;
    border-bottom: 4px solid var(--aou-gold);
}

    .declaration-header .aou-logo {
        width: 150px;
        height: 75px;
        margin: 0 auto 14px;
        padding: 5px;
        border-radius: 6px;
    }

    .declaration-header h1 {
        margin: 0 0 6px;
        color: #fff;
        font-size: 25px;
        font-weight: 700;
    }

    .declaration-header p {
        margin: 0;
        color: #f0c94e;
        font-size: 18px;
    }

.declaration-body {
    padding: 32px;
}

.student-name {
    color: var(--aou-navy);
    font-weight: 700;
}

.language-label {
    margin-bottom: 12px;
    color: var(--aou-navy);
    font-size: 18px;
    font-weight: 700;
}

.declaration-text {
    margin-bottom: 0;
    color: var(--aou-text);
    font-size: 18px;
    line-height: 2;
}

.arabic-text {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
}

.english-text {
    direction: ltr;
    text-align: left;
}

.declaration-section {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
}

.acceptance {
    margin: 24px 0;
    padding: 18px;
    background: #f7f9fc;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
}

.form-check {
    padding-right: 1.7em;
    padding-left: 0;
}

.form-check-input {
    float: right;
    margin-right: -1.7em;
    margin-left: 0;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    line-height: 1.8;
}

.continue-button {
    padding: 12px 32px;
    background: var(--aou-navy);
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .continue-button:hover {
        background: var(--aou-blue);
        color: #fff;
    }

/* ===================== COMMON LOGOUT BUTTON ===================== */

.header-logout {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 10;
}

    .header-logout form {
        margin: 0;
    }

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    background: transparent;
    color: #fff;
    border: 1px solid var(--aou-gold);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

    .logout-button:hover {
        background: var(--aou-gold);
        color: var(--aou-navy);
    }

    .logout-button:focus-visible {
        outline: 3px solid #fff;
        outline-offset: 3px;
    }

/* ===================== MAIN / PERSONAL INFORMATION PAGE ===================== */

.main-card {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 38, 77, .12);
}

.main-header {
    position: relative;
    padding: 22px 28px;
    background: var(--aou-navy);
    color: #fff;
    border-bottom: 4px solid var(--aou-gold);
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 100px;
    padding-top: 35px;
}

.header-title {
    flex: 1;
    min-width: 0;
    text-align: right;
}

    .header-title h1 {
        margin: 0 0 8px;
        color: #fff;
        font-size: 25px;
        font-weight: 700;
    }

    .header-title p {
        margin: 0;
        color: #f0c94e;
        font-size: 16px;
    }

.main-body {
    padding: 30px;
}

.student-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.detail-box {
    min-width: 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--aou-border);
    border-radius: 8px;
}

.detail-label {
    display: block;
    margin-bottom: 8px;
    color: #526579;
    font-size: 13px;
}

.detail-value {
    display: block;
    color: var(--aou-navy);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.status-value {
    color: #855f00;
}

.section-title {
    margin: 25px 0 18px;
    padding-bottom: 10px;
    color: var(--aou-navy);
    border-bottom: 2px solid var(--aou-gold);
    font-size: 20px;
    font-weight: 700;
}

.radio-panel {
    margin-bottom: 18px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--aou-border);
    border-radius: 8px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 8px 24px 8px 0;
    cursor: pointer;
}

.confirmation-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--aou-border);
    border-radius: 8px;
    cursor: pointer;
}

    .confirmation-option:hover {
        background: #f5f8fc;
        border-color: #8aa4bf;
    }

    .confirmation-option input {
        flex-shrink: 0;
        margin-top: 5px;
    }

.option-text {
    line-height: 1.8;
}

.arabic {
    display: block;
    margin-top: 5px;
    direction: rtl;
    text-align: right;
    font-family: Tahoma, Arial, sans-serif;
}

.name-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

    .name-table th,
    .name-table td {
        padding: 15px;
        border: 1px solid #ccd5df;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .name-table th {
        width: 35%;
        background: #edf2f7;
        color: var(--aou-navy);
    }

    .name-table td {
        background: #fff;
    }

.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.proceed-button {
    padding: 12px 40px;
    background: var(--aou-navy);
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

    .proceed-button:hover {
        background: var(--aou-blue);
        color: #fff;
    }

.responsibility-note {
    margin-top: 25px;
    color: #007635;
    font-weight: 700;
    line-height: 1.8;
}

.help-note {
    margin-top: 25px;
    color: var(--aou-danger);
    line-height: 1.8;
    overflow-wrap: anywhere;
}

/* ===================== DOCUMENT UPLOAD PAGE ===================== */

.info-panel {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid var(--aou-border);
    border-radius: 8px;
    line-height: 1.8;
}

.document-table {
    margin-bottom: 0;
    vertical-align: middle;
}

    .document-table thead th {
        padding: 14px 12px;
        background: var(--aou-navy);
        color: #fff;
        white-space: nowrap;
    }

    .document-table td {
        padding: 14px 12px;
    }

    .document-table tbody tr:hover {
        background: #f8fafc;
    }

.document-name {
    color: var(--aou-navy);
    font-weight: 700;
}

.upload-input {
    min-width: 190px;
    max-width: 260px;
    font-size: 13px;
}

.upload-button {
    padding: 8px 14px;
    background: var(--aou-navy);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

    .upload-button:hover {
        background: var(--aou-blue);
        color: #fff;
    }

.delete-button {
    padding: 8px 12px;
    background: var(--aou-danger);
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

    .delete-button:hover {
        background: #8f1d14;
        color: #fff;
    }

.status-uploaded {
    color: #198754;
    font-weight: 700;
}

.status-missing {
    color: #b54708;
    font-weight: 700;
}

.required-label {
    color: var(--aou-danger);
    font-weight: 700;
}

.optional-label {
    color: #526579;
}

.back-button {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: var(--aou-navy);
    border: 1px solid var(--aou-navy);
    border-radius: 7px;
    font-weight: 700;
    text-decoration: none;
}

    .back-button:hover {
        background: var(--aou-navy);
        color: #fff;
    }

/* ===================== RESPONSIVE: TABLETS & PHONES ===================== */

@media (max-width: 700px) {
    body {
        padding: 12px;
    }

    .login-container {
        margin: 3vh auto;
    }

    .login-body {
        padding: 22px;
    }

    .student-details {
        grid-template-columns: 1fr;
    }

    .main-header {
        padding: 18px 16px;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding-top: 42px;
    }

    .aou-logo {
        width: 110px;
        height: 58px;
    }

    .header-title {
        text-align: center;
    }

        .header-title h1 {
            font-size: 19px;
        }

        .header-title p {
            font-size: 14px;
        }

    .header-logout {
        top: 8px;
        right: 8px;
    }

    .logout-button {
        padding: 7px 10px;
        font-size: 12px;
    }

    .main-body {
        padding: 18px;
    }

    .declaration-body {
        padding: 18px;
    }

    .declaration-text {
        font-size: 16px;
    }

    .declaration-header {
        padding: 60px 18px 20px;
    }

        .declaration-header .aou-logo {
            width: 125px;
            height: 65px;
        }

        .declaration-header h1 {
            font-size: 21px;
        }

        .declaration-header p {
            font-size: 16px;
        }

    .radio-option {
        display: flex;
        margin-right: 0;
    }

    .name-table th,
    .name-table td {
        padding: 10px;
    }

    .proceed-button {
        max-width: 100%;
        padding: 12px 24px;
    }

    .document-table thead th,
    .document-table td {
        padding: 10px 8px;
    }

    .upload-input {
        min-width: 150px;
    }

    .graduation-icon {
        top: 18px;
        right: 15px;
        font-size: 34px;
    }

    .login-header {
        padding: 22px 18px;
    }

        .login-heading h1,
        .login-header h1 {
            font-size: 21px;
        }
}

/* ===================== RESPONSIVE: SMALL PHONES ===================== */

@media (max-width: 400px) {
    body {
        padding: 8px;
    }

    .main-header {
        padding: 14px 12px;
    }

    .main-body {
        padding: 14px;
    }

    .header-title h1 {
        font-size: 18px;
    }

    .header-title p {
        font-size: 13px;
    }

    .aou-logo {
        width: 100px;
        height: 55px;
    }

    .name-table th,
    .name-table td {
        padding: 8px;
        font-size: 13px;
    }

    .declaration-body {
        padding: 14px;
    }

    .declaration-section {
        padding: 14px;
    }

    .acceptance {
        padding: 14px;
    }

    .login-body {
        padding: 18px;
    }

    .login-header .aou-logo {
        width: 120px;
        height: 60px;
    }
}
