* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fa;
    color: #263247;
}

.page-container {
    width: 100%;
    min-height: 100vh;
}

.page-header {
    background: linear-gradient(135deg, #142b4b, #28618b);
    color: white;
    text-align: center;
    padding: 55px 20px;
}

.header-content {
    max-width: 800px;
    margin: auto;
}

.header-label {
    font-size: 12px;
    letter-spacing: 3px;
    color: #b9d9f4;
    margin-bottom: 15px;
}

.page-header h1 {
    font-size: 38px;
    margin: 0;
}

.page-header p {
    font-size: 23px;
    margin: 12px 0;
}

.header-description {
    font-size: 14px;
    color: #d7e7f5;
    margin-top: 18px;
}

.main-content {
    max-width: 1050px;
    width: 94%;
    margin: 35px auto;
}

.registration-card,
.statistics-section,
.list-section {
    background: white;
    padding: 28px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading h2,
.statistics-section h2 {
    margin: 0 0 8px;
    color: #183b61;
    font-size: 22px;
}

.section-heading p {
    color: #788596;
    font-size: 14px;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
    min-width: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    height: 46px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    padding: 0 13px;
    font-size: 15px;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #2878b8;
    box-shadow: 0 0 0 3px rgba(40,120,184,0.12);
}

.form-row {
    display: flex;
    gap: 20px;
}

.total-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #edf5fc;
    padding: 17px;
    border-radius: 8px;
    margin-bottom: 22px;
}

.total-box strong {
    font-size: 24px;
    color: #1e659b;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: #216ca5;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.submit-button:hover {
    background: #174e7b;
}

.submit-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.statistics-section h2 {
    margin-bottom: 20px;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    background: #f1f5f9;
    padding: 20px 12px;
    text-align: center;
    border-radius: 9px;
}

.stat-card span {
    display: block;
    color: #68778a;
    font-size: 13px;
    margin-bottom: 10px;
}

.stat-card strong {
    display: block;
    font-size: 28px;
    color: #214d75;
}

.total-stat {
    background: #e6f2fb;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 550px;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e7ebf0;
    font-size: 14px;
}

thead {
    background: #edf3f8;
}

th {
    color: #244b70;
    font-weight: bold;
}

tbody tr:hover {
    background: #f8fafc;
}

.applicant-cell {
    font-weight: 600;
}

tfoot {
    background: #eaf2f9;
    font-weight: bold;
}

.empty-state {
    text-align: center;
    padding: 35px;
    color: #8793a2;
}

.message {
    padding: 15px 18px;
    margin-bottom: 22px;
    border-radius: 8px;
    font-size: 14px;
}

.success {
    background: #e5f5e9;
    color: #236b38;
}

.error {
    background: #fff0ef;
    color: #a52b25;
}

.page-footer {
    text-align: center;
    padding: 25px;
    color: #8290a0;
    font-size: 13px;
}

.page-footer p {
    margin: 5px;
}

@media (max-width: 700px) {

    .page-header {
        padding: 40px 15px;
    }

    .page-header h1 {
        font-size: 30px;
    }

    .main-content {
        width: 94%;
        margin: 20px auto;
    }

    .registration-card,
    .statistics-section,
    .list-section {
        padding: 20px 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-card strong {
        font-size: 24px;
    }

}
