
/* =========================================
   FORM LAYOUT - FLEXBOX
========================================= */

.field-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -9px;
    margin-right: -9px;
}

.field-grid > label {
    width: 50%;
    padding: 0 9px;
    box-sizing: border-box;
}

@media (max-width: 650px) {
    .field-grid > label {
        width: 100%;
    }
}

/* =========================================
   STUDENT DASHBOARD
========================================= */

.dashboard-wrap {
    background: var(--soft);
    padding: 50px 0 80px;
    min-height: 70vh;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.dashboard-heading h1 {
    font: 800 34px Manrope, sans-serif;
    color: var(--navy);
    margin: 5px 0;
}

.dashboard-heading p {
    margin: 0;
}

/* Dashboard statistics */

.dashboard-stats,
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.dashboard-stats .stat-card,
.stats-grid .stat-card {
    flex: 1 1 200px;
    min-width: 0;
}

.stat-card {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(23,43,79,.035);
}

.stat-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}

.stat-card strong {
    display: block;
    font: 800 30px Manrope, sans-serif;
    color: var(--navy);
    margin-top: 6px;
}

.stat-card .stat-word {
    font-size: 20px;
    color: #26966b;
}

/* =========================================
   DASHBOARD PANELS
========================================= */

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 12px 40px rgba(23,43,79,.05);
}

.panel h2 {
    font: 700 20px Manrope, sans-serif;
    color: var(--navy);
    margin: 0 0 18px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-heading h2 {
    margin-bottom: 5px;
}

.panel-heading p {
    margin: 0;
}

/* =========================================
   APPLICATION TABLE
========================================= */

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.application-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    font-size: 12px;
}

.application-table th {
    text-align: left;
    color: #64718a;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
    background: #f7f8fb;
    white-space: nowrap;
}

.application-table th,
.application-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.application-table td {
    color: #34425a;
}

.application-table tbody tr:hover {
    background: #f9fafc;
}

.application-table td strong {
    color: var(--navy);
}

/* =========================================
   APPLICATION STATUS
========================================= */

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.status-submitted {
    background: #fff5e9;
    color: #a65b14;
}

.status-under_review {
    background: #eff6ff;
    color: #1d4ed8;
}

.status-approved {
    background: #eaf8f0;
    color: #20764b;
}

.status-rejected {
    background: #fff0ee;
    color: #a33a2d;
}

.status-more_information {
    background: #fffbe6;
    color: #99700b;
}

/* =========================================
   EMPTY APPLICATIONS
========================================= */

.empty-applications {
    padding: 40px 20px;
    text-align: center;
}

.empty-applications h3 {
    font: 700 20px Manrope, sans-serif;
    color: var(--navy);
    margin: 0 0 10px;
}

.empty-applications p {
    max-width: 500px;
    margin: 0 auto 22px;
    color: var(--muted);
}

/* Dashboard links */

.application-table .text-link {
    font-size: 12px;
    font-weight: 800;
    color: var(--orange);
}

.application-table .text-link:hover {
    color: var(--navy);
}

/* =========================================
   DASHBOARD RESPONSIVENESS
========================================= */

@media (max-width: 850px) {
    .dashboard-heading h1 {
        font-size: 30px;
    }

    .dashboard-stats .stat-card,
    .stats-grid .stat-card {
        flex-basis: calc(50% - 15px);
    }
}

@media (max-width: 650px) {
    .dashboard-wrap {
        padding: 35px 0 55px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .dashboard-heading h1 {
        font-size: 27px;
    }

    .dashboard-stats,
    .stats-grid {
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-stats .stat-card,
    .stats-grid .stat-card {
        width: 100%;
        flex-basis: auto;
    }

    .panel {
        padding: 18px;
    }

    .panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .empty-applications {
        padding: 25px 10px;
    }
}
