html {
    font-size: 16px;
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    background-color: #f5f7fb;
    color: #1f2937;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================
   Navigation
   ========================= */

.findmyres-navbar {
    background: #12355b;
    min-height: 72px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.findmyres-brand {
    color: #ffffff !important;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.findmyres-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.6rem 0.9rem !important;
    transition: color 0.2s ease;
}

    .findmyres-navbar .nav-link:hover {
        color: #ffffff !important;
    }

/* =========================
   Main content
   ========================= */

.findmyres-main {
    min-height: calc(100vh - 144px);
    padding: 2.5rem 0 4rem;
}

/* =========================
   Buttons
   ========================= */

.btn-primary {
    background-color: #1769aa;
    border-color: #1769aa;
}

    .btn-primary:hover,
    .btn-primary:focus {
        background-color: #12598f;
        border-color: #12598f;
    }

.btn {
    border-radius: 8px;
    font-weight: 600;
}

/* =========================
   Cards
   ========================= */

.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* =========================
   Forms
   ========================= */

.form-control,
.form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #1769aa;
        box-shadow: 0 0 0 0.2rem rgba(23, 105, 170, 0.15);
    }

.form-label {
    font-weight: 600;
    color: #374151;
}

/* =========================
   Footer
   ========================= */

.findmyres-footer {
    background: #0f2942;
    color: rgba(255, 255, 255, 0.75);
    padding: 1.5rem 0;
}

    .findmyres-footer a {
        color: #ffffff;
        text-decoration: none;
    }

        .findmyres-footer a:hover {
            text-decoration: underline;
        }

.footer-brand {
    color: #ffffff;
    font-weight: 700;
    margin-right: 0.75rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.65);
}

/* =========================
   Validation
   ========================= */

.text-danger {
    font-size: 0.875rem;
}

.validation-summary-errors ul {
    margin-bottom: 0;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 767.98px) {

    .findmyres-main {
        padding-top: 1.5rem;
    }

    .findmyres-navbar {
        min-height: 64px;
    }

        .findmyres-navbar .nav-link {
            padding: 0.75rem 0 !important;
        }
}

/* =========================
Landing Page
========================= */

.hero-section {
    padding: 4rem 0 5rem;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-block;
    color: #1769aa;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.hero-title {
    color: #12355b;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

    .hero-title span {
        color: #1769aa;
    }

.hero-description {
    max-width: 650px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
}

.hero-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: #e8f1f8;
    color: #1769aa;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-card h3 {
    color: #12355b;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.hero-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-card-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #eef0f3;
}

    .hero-card-item > span {
        color: #1769aa;
        font-size: 0.8rem;
        font-weight: 700;
    }

    .hero-card-item strong,
    .hero-card-item small {
        display: block;
    }

    .hero-card-item strong {
        color: #1f2937;
    }

    .hero-card-item small {
        color: #94a3b8;
        margin-top: 0.15rem;
    }

.info-section {
    padding: 4rem 0;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 2rem;
}

    .section-heading h2 {
        color: #12355b;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }

    .section-heading p {
        color: #64748b;
        margin-bottom: 0;
    }

.feature-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .feature-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
    }

.feature-number {
    color: #1769aa;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: #12355b;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #64748b;
    line-height: 1.65;
    margin-bottom: 0;
}

.cta-section {
    margin: 2rem 0 1rem;
    padding: 2.5rem;
    background: #12355b;
    border-radius: 16px;
    color: #ffffff;
}

    .cta-section h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
    }

    .cta-section p {
        color: rgba(255, 255, 255, 0.75);
        margin-bottom: 0;
    }

    .cta-section .btn-light {
        color: #12355b;
        font-weight: 700;
    }

@media (max-width: 767.98px) {

    
    .hero-section {
        padding: 2rem 0 3rem;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-card {
        padding: 1.5rem;
    }

    .info-section {
        padding: 3rem 0;
    }

    .cta-section {
        padding: 2rem;
    }
}

/* =========================
   Student-Friendly Additions
   ========================= */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background-color: #e8f1f8;
    color: #12598f;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981; /* Green status dot */
    border-radius: 50%;
    display: inline-block;
}

.hero-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}

.step-pill {
    display: inline-block;
    background: #eef2f6;
    color: #1769aa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prep-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

    .prep-list li:last-child {
        border-bottom: none;
    }

.prep-icon {
    font-size: 1.3rem;
    line-height: 1;
    background: #f8fafc;
    padding: 0.4rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.feature-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1769aa;
    background: #e8f1f8;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.text-primary-dark {
    color: #12355b;
}

.help-box {
    border: 1px solid #e5e7eb;
}

/* =========================
Application Form
========================= */

.application-page {
    max-width: 900px;
    margin: 0 auto;
}

.application-header {
    margin-bottom: 2rem;
}

    .application-header h1 {
        color: #12355b;
        font-size: 2.5rem;
        font-weight: 750;
        letter-spacing: -0.03em;
        margin-bottom: 0.75rem;
    }

    .application-header p {
        max-width: 700px;
        color: #64748b;
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 0;
    }

/* =========================
Application Cards
========================= */

.application-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.application-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f3;
}

.application-step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #e8f1f8;
    color: #1769aa;
    font-size: 0.8rem;
    font-weight: 700;
}

.application-card-header h2 {
    color: #12355b;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.application-card-header p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* =========================
Document Upload
========================= */

.document-upload {
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
}

    .document-upload .form-text {
        margin-top: 0.6rem;
    }

/* =========================
Submit Area
========================= */

.application-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

    .application-submit strong,
    .application-submit span {
        display: block;
    }

    .application-submit strong {
        color: #12355b;
        margin-bottom: 0.2rem;
    }

    .application-submit span {
        color: #64748b;
        font-size: 0.9rem;
    }

/* =========================
Responsive
========================= */

@media (max-width: 767.98px) {

    
    .application-header h1 {
        font-size: 2rem;
    }

    .application-card {
        padding: 1.25rem;
    }

    .application-card-header {
        margin-bottom: 1.25rem;
    }

    .application-submit {
        align-items: stretch;
        flex-direction: column;
    }

        .application-submit .btn {
            width: 100%;
        }

    
}

/* =========================
Application Success
========================= */

.success-page {
    max-width: 760px;
    margin: 2rem auto 4rem;
}

.success-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: #e8f1f8;
    color: #1769aa;
    font-size: 1.8rem;
    font-weight: 700;
}

.success-card h1 {
    color: #12355b;
    font-size: 2.25rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.success-intro {
    max-width: 580px;
    margin: 0 auto 2rem;
    color: #64748b;
    line-height: 1.65;
}

/* =========================
Reference Number
========================= */

.reference-box {
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: #f8fafc;
    border: 1px solid #dbe3ec;
    border-radius: 12px;
}

.reference-label {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.reference-number {
    display: block;
    color: #1769aa;
    font-size: 2rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.reference-box p {
    max-width: 500px;
    margin: 0 auto;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.55;
}

/* =========================
Next Steps
========================= */

.success-next {
    text-align: left;
    padding-top: 1.5rem;
    border-top: 1px solid #eef0f3;
}

    .success-next h2 {
        color: #12355b;
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 1.25rem;
    }

.success-step {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

    .success-step > span {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        background: #e8f1f8;
        color: #1769aa;
        font-size: 0.75rem;
        font-weight: 700;
    }

    .success-step strong {
        display: block;
        color: #1f2937;
        margin-bottom: 0.2rem;
    }

    .success-step p {
        color: #64748b;
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }

/* =========================
Actions
========================= */

.success-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* =========================
Responsive
========================= */

@media (max-width: 767.98px) {

    .success-page {
        margin-top: 1rem;
    }

    .success-card {
        padding: 2rem 1.25rem;
    }

        .success-card h1 {
            font-size: 1.85rem;
        }

    .reference-number {
        font-size: 1.5rem;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* =========================
Application Status
========================= */

.status-page {
    max-width: 760px;
    margin: 1rem auto 4rem;
}

.status-header {
    margin-bottom: 2rem;
}

    .status-header h1 {
        color: #12355b;
        font-size: 2.5rem;
        font-weight: 750;
        letter-spacing: -0.03em;
        margin-bottom: 0.75rem;
    }

    .status-header p {
        max-width: 650px;
        color: #64748b;
        line-height: 1.65;
        margin-bottom: 0;
    }

/* =========================
Search Card
========================= */

.status-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.status-card-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eef0f3;
}

    .status-card-header h2 {
        color: #12355b;
        font-size: 1.3rem;
        font-weight: 700;
        margin-bottom: 0.35rem;
    }

    .status-card-header p {
        color: #64748b;
        font-size: 0.9rem;
        margin-bottom: 0;
    }

/* =========================
Result
========================= */

.status-result {
    margin-top: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.status-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .status-result-header h2 {
        color: #12355b;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
    }

.status-badge {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #e8f1f8;
    color: #1769aa;
    font-size: 0.8rem;
    font-weight: 700;
}

.status-reference {
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

    .status-reference span,
    .status-reference strong {
        display: block;
    }

    .status-reference span {
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        margin-bottom: 0.4rem;
    }

    .status-reference strong {
        color: #1769aa;
        font-size: 1.3rem;
        letter-spacing: 0.03em;
        word-break: break-word;
    }

/* =========================
Status Message
========================= */

.status-message {
    padding: 1.25rem;
    background: #f8fafc;
    border-left: 4px solid #1769aa;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.status-message-label {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.status-message p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

/* =========================
Result Footer
========================= */

.status-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef0f3;
}

    .status-result-footer span {
        color: #64748b;
        font-size: 0.9rem;
    }

/* =========================
Mobile
========================= */

@media (max-width: 767.98px) {

    .status-header h1 {
        font-size: 2rem;
    }

    .status-card,
    .status-result {
        padding: 1.25rem;
    }

    .status-result-header {
        flex-direction: column;
    }

    .status-result-footer {
        align-items: stretch;
        flex-direction: column;
    }

        .status-result-footer .btn {
            width: 100%;
        }
}

/* =========================
Admin Login
========================= */

.admin-login-page {
    max-width: 460px;
    margin: 3rem auto 5rem;
}

.admin-login-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.admin-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    border-radius: 12px;
    background: #e8f1f8;
    font-size: 1.4rem;
}

.admin-login-header h1 {
    color: #12355b;
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.admin-login-header p {
    color: #64748b;
    margin-bottom: 0;
}

.admin-login-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef0f3;
    text-align: center;
}

    .admin-login-footer a {
        color: #64748b;
        font-size: 0.9rem;
        text-decoration: none;
    }

    .admin-login-footer a {
        color: #1769aa;
    }

@media (max-width: 767.98px) {

    .admin-login-page {
        margin-top: 1rem;
    }

    .admin-login-card {
        padding: 1.5rem;
    }
}

/* =========================================
   Admin Dashboard
   ========================================= */

.admin-dashboard {
    margin: 0 auto;
    padding: 0.5rem 0 3rem;
}

.admin-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

    .admin-dashboard-header h1 {
        color: #12355b;
        font-size: 2.4rem;
        font-weight: 750;
        letter-spacing: -0.03em;
        margin: 0.2rem 0 0.5rem;
    }

    .admin-dashboard-header p {
        color: #64748b;
        margin: 0;
    }

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dashboard-stat-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.dashboard-stat-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .dashboard-stat-link:hover {
        transform: translateY(-2px);
        border-color: #cbd5e1;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    }

.dashboard-stat-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.dashboard-stat-value {
    color: #12355b;
    font-size: 2.25rem;
    font-weight: 750;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.dashboard-stat-description {
    color: #94a3b8;
    font-size: 0.8rem;
}

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    margin-top: 1rem;
}

.dashboard-management-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.dashboard-management-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #e8f1f8;
    color: #1769aa;
    font-size: 1.25rem;
    font-weight: 700;
}

.dashboard-management-card h2 {
    color: #12355b;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.25rem 0 0.5rem;
}

.dashboard-management-card p {
    max-width: 650px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}


/* Responsive */

@media (max-width: 991.98px) {

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {

    .admin-dashboard-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

        .admin-dashboard-header h1 {
            font-size: 2rem;
        }

        .admin-dashboard-header .btn {
            width: 100%;
        }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-management-card {
        flex-direction: column;
        padding: 1.5rem;
    }

        .dashboard-management-card .btn {
            width: 100%;
        }
}
/* =========================================
   Admin Applications
   ========================================= */

.applications-page {
    margin: 0 auto;
    padding: 0.5rem 0 3rem;
}

.applications-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

    .applications-header h1 {
        color: #12355b;
        font-size: 2.4rem;
        font-weight: 750;
        letter-spacing: -0.03em;
        margin: 0.2rem 0 0.5rem;
    }

    .applications-header p {
        color: #64748b;
        margin: 0;
    }


/* Filters */

.applications-filter-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.filter-header {
    margin-bottom: 1.25rem;
}

    .filter-header h2 {
        color: #12355b;
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 0.3rem;
    }

    .filter-header p {
        color: #64748b;
        font-size: 0.9rem;
        margin: 0;
    }


/* Summary */

.applications-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

    .applications-summary strong {
        color: #12355b;
        font-size: 1rem;
    }

.applications-pagination-info {
    color: #94a3b8;
}


/* Table */

.applications-table-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.applications-table {
    margin: 0;
    min-width: 1100px;
}

    .applications-table thead th {
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        white-space: nowrap;
        padding: 0.9rem 1rem;
    }

    .applications-table tbody td {
        color: #374151;
        border-bottom: 1px solid #eef0f3;
        padding: 1rem;
        vertical-align: middle;
    }

    .applications-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .applications-table tbody tr {
        transition: background-color 0.15s ease;
    }

        .applications-table tbody tr:hover {
            background-color: #fafbfc;
        }

.application-reference {
    color: #1769aa;
    font-weight: 700;
    white-space: nowrap;
}

.applicant-name {
    color: #1f2937;
    font-weight: 600;
    white-space: nowrap;
}

.applicant-email {
    color: #94a3b8;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.application-date {
    display: block;
    white-space: nowrap;
}

.application-time {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}


/* Status badges */

.application-status {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-submitted {
    background: #fff7d6;
    color: #856404;
}

.status-review {
    background: #e8f1f8;
    color: #1769aa;
}

.status-approved {
    background: #e8f5ee;
    color: #18794e;
}

.status-rejected {
    background: #fdecec;
    color: #b42318;
}

.status-default {
    background: #f1f5f9;
    color: #475569;
}


/* Empty state */

.applications-empty {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.applications-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.5rem;
    font-weight: 700;
}

.applications-empty h2 {
    color: #12355b;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.applications-empty p {
    color: #64748b;
    margin-bottom: 1.25rem;
}


/* Pagination */

.applications-pagination {
    margin-top: 1.5rem;
}

    .applications-pagination .page-link {
        color: #1769aa;
        border-color: #e5e7eb;
    }

    .applications-pagination .page-item.active .page-link {
        background-color: #1769aa;
        border-color: #1769aa;
        color: #ffffff;
    }

    .applications-pagination .page-item.disabled .page-link {
        color: #94a3b8;
    }


/* Responsive */

@media (max-width: 767.98px) {

    .applications-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

        .applications-header h1 {
            font-size: 2rem;
        }

        .applications-header .btn {
            width: 100%;
        }

    .applications-filter-card {
        padding: 1.25rem;
    }

    .applications-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}

.application-details-page {
    margin: 0 auto;
    padding: 0.5rem 0 3rem;
}

.application-details-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

    .application-details-header h1 {
        color: #12355b;
        font-size: 2.4rem;
        font-weight: 750;
        letter-spacing: -0.03em;
        margin: 0.2rem 0 0.35rem;
    }

.application-details-reference {
    color: #1769aa;
    font-size: 0.95rem;
    font-weight: 700;
}

.details-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
}

.details-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

    .details-card-header > div:first-child {
        display: flex;
        align-items: flex-start;
        gap: 0.9rem;
    }

.details-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8f1f8;
    color: #1769aa;
    font-size: 0.78rem;
    font-weight: 800;
}

.details-card-header h2 {
    color: #12355b;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.1rem 0 0.25rem;
}

.details-card-header p {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #eef0f3;
}

.details-grid-small {
    grid-template-columns: repeat(2, minmax(0, 260px));
}

.details-item {
    padding: 1rem 1rem 1rem 0;
    border-bottom: 1px solid #eef0f3;
}

    .details-item:nth-child(odd) {
        border-right: 1px solid #eef0f3;
        padding-right: 1.5rem;
    }

    .details-item:nth-child(even) {
        padding-left: 1.5rem;
    }

.details-label {
    display: block;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.details-item strong {
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.application-status {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-submitted {
    background: #fff7d6;
    color: #856404;
}

.status-review {
    background: #e8f1f8;
    color: #1769aa;
}

.status-approved {
    background: #e8f5ee;
    color: #18794e;
}

.status-rejected {
    background: #fdecec;
    color: #b42318;
}

.status-default {
    background: #f1f5f9;
    color: #475569;
}

.status-update-form {
    border-top: 1px solid #eef0f3;
    padding-top: 1.5rem;
}

.status-update-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef0f3;
}

    .status-update-footer span {
        color: #64748b;
        font-size: 0.85rem;
    }

.final-decision-panel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
}

.final-decision-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8f5ee;
    color: #18794e;
    font-weight: 800;
}

.final-decision-panel strong {
    color: #12355b;
}

.final-decision-panel p {
    color: #64748b;
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.existing-message {
    margin-top: 1.25rem;
    padding: 1rem;
    background: #f8fafc;
    border-left: 3px solid #1769aa;
    border-radius: 0 8px 8px 0;
}

    .existing-message p {
        color: #374151;
        margin: 0.35rem 0 0;
        white-space: pre-wrap;
    }

.document-panel {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
}

.document-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #fdecec;
    color: #b42318;
    font-size: 0.7rem;
    font-weight: 800;
}

.document-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

    .document-info strong {
        color: #1f2937;
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

.document-empty {
    background: #f8fafc;
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 1.25rem;
}

    .document-empty p {
        color: #64748b;
        margin: 0.3rem 0 0;
    }

@media (max-width: 767.98px) {


    .application-details-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .application-details-header h1 {
        font-size: 2rem;
    }

    .application-details-header .btn {
        width: 100%;
    }

    .details-card {
        padding: 1.25rem;
    }

    .details-card-header {
        flex-direction: column;
    }

    .details-grid,
    .details-grid-small {
        grid-template-columns: 1fr;
    }

    .details-item:nth-child(odd) {
        border-right: 0;
        padding-right: 0;
    }

    .details-item:nth-child(even) {
        padding-left: 0;
    }

    .status-update-footer {
        align-items: stretch;
        flex-direction: column;
    }

        .status-update-footer .btn {
            width: 100%;
        }

    .document-panel {
        align-items: stretch;
        flex-direction: column;
    }

        .document-panel .btn {
            width: 100%;
        }

}




/* =========================================================
FINDMYRES — FINAL RESPONSIVE PASS
========================================================= */

/* ---------- Tablet ---------- */

@media (max-width: 991.98px) {

    .hero-title {
        font-size: 3rem;
    }

    .hero-card {
        margin-top: 0.5rem;
    }

    .application-header {
        margin-bottom: 1.5rem;
    }

    .application-submit {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

        .application-submit .btn {
            width: 100%;
        }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
    }

    .applications-table {
        min-width: 1000px;
    }
}

/* ---------- Mobile ---------- */

@media (max-width: 767.98px) {

    /* Global */

    .findmyres-main {
        padding: 1.5rem 0 3rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }


    /* Navigation */

    .findmyres-navbar {
        min-height: 64px;
    }

        .findmyres-navbar .navbar-collapse {
            padding: 0.75rem 0 1rem;
        }

        .findmyres-navbar .navbar-nav {
            align-items: stretch !important;
        }

        .findmyres-navbar .nav-item {
            width: 100%;
        }

        .findmyres-navbar .nav-link {
            padding: 0.7rem 0 !important;
        }

        .findmyres-navbar .nav-item form {
            margin-top: 0.5rem;
        }

            .findmyres-navbar .nav-item form .btn {
                width: 100%;
            }


    /* Hero */

    .hero-section {
        padding: 1rem 0 2.5rem;
    }

    .hero-title {
        font-size: 2.35rem;
        line-height: 1.08;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

        .hero-actions .btn {
            width: 100%;
        }

    .hero-card {
        padding: 1.5rem;
    }


    /* General sections */

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 1.75rem;
    }

        .cta-section h2 {
            font-size: 1.7rem;
        }


    /* Application form */

    .application-page {
        padding-top: 0;
    }

    .application-header h1 {
        font-size: 2rem;
    }

    .application-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .application-card-header {
        align-items: flex-start;
        gap: 0.75rem;
    }

        .application-card-header h2 {
            font-size: 1.1rem;
        }

    .application-submit {
        padding: 1.25rem;
    }


    /* Success page */

    .success-page {
        padding-top: 0;
    }

    .success-card {
        padding: 1.5rem;
    }

        .success-card h1 {
            font-size: 2rem;
        }

    .success-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

        .success-actions .btn {
            width: 100%;
        }

    .reference-number {
        font-size: 1.5rem;
        word-break: break-word;
    }


    /* Status checker */

    .status-header h1 {
        font-size: 2rem;
    }

    .status-card,
    .status-result {
        padding: 1.25rem;
    }

    .status-result-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .status-result-footer {
        align-items: stretch;
        flex-direction: column;
    }

        .status-result-footer .btn {
            width: 100%;
        }


    /* Admin login */

    .admin-login-page {
        padding: 0;
    }

    .admin-login-card {
        padding: 1.5rem;
    }

        .admin-login-card h1 {
            font-size: 2rem;
        }


    /* Admin dashboard */

    .admin-dashboard {
        padding-top: 0;
    }

    .admin-dashboard-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

        .admin-dashboard-header h1 {
            font-size: 2rem;
        }

        .admin-dashboard-header .btn {
            width: 100%;
        }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .dashboard-stat-card {
        padding: 1.25rem;
    }


    /* Applications list */

    .applications-page {
        padding-top: 0;
    }

    .applications-filter-card {
        padding: 1rem;
    }

        .applications-filter-card .btn {
            min-height: 44px;
        }

    .applications-table-card {
        border-radius: 10px;
    }

    /*
   Keep the table horizontally scrollable rather than
   squeezing columns until they become unreadable.
*/

    .applications-table {
        min-width: 1000px;
    }

        .applications-table tbody td {
            padding: 0.85rem;
        }


    /* Admin details */

    .application-details-page {
        padding-top: 0;
    }

    .application-details-header {
        margin-bottom: 1.25rem;
    }

        .application-details-header h1 {
            font-size: 2rem;
        }

    .details-card {
        padding: 1.1rem;
        margin-bottom: 1rem;
    }

    .details-card-header {
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

        .details-card-header h2 {
            font-size: 1.1rem;
        }

    .details-grid,
    .details-grid-small {
        grid-template-columns: 1fr;
    }

    .details-item,
    .details-item:nth-child(odd),
    .details-item:nth-child(even) {
        border-right: 0;
        padding: 0.85rem 0;
    }

    .status-update-footer {
        align-items: stretch;
        flex-direction: column;
    }

        .status-update-footer .btn {
            width: 100%;
        }

    .document-panel {
        align-items: stretch;
        flex-direction: column;
    }

        .document-panel .btn {
            width: 100%;
        }


    /* Footer */

    .findmyres-footer {
        padding: 1.25rem 0;
    }
}

/* ---------- Small phones ---------- */

@media (max-width: 374.98px) {

    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.05rem;
    }

    .application-header h1,
    .status-header h1,
    .admin-login-card h1,
    .admin-dashboard-header h1,
    .applications-header h1,
    .application-details-header h1 {
        font-size: 1.8rem;
    }

    .reference-number {
        font-size: 1.3rem;
    }

    .details-section-number {
        width: 34px;
        height: 34px;
    }
}