/* =========================
   ADMIN PAGINA
========================= */

.admin-page {
    min-height: 100vh;
    padding: 48px 24px 64px;
    background-color: #f7f7f7;
}

.admin-wrapper {
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
}

.admin-header {
    margin-bottom: 28px;
}

.admin-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.admin-subtitle {
    font-size: 1rem;
    color: #6b7280;
}

/* =========================
   STATS CARDS
========================= */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 120px;
}

.stat-card__content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
}

.stat-card__label {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #feecec;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* =========================
   FILTERS
========================= */

.admin-filter-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.admin-filter-form {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.filter-field {
    width: 100%;
}

.admin-input,
.admin-select {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    background-color: #ffffff;
    font-size: 1rem;
    color: #111827;
}

.admin-input::placeholder {
    color: #9ca3af;
}

.admin-input:focus,
.admin-select:focus {
    outline: none;
    border-color: #ef4444;
}

/* =========================
   TABEL CARD
========================= */

.admin-table-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead th {
    padding: 18px 20px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
}

.admin-table tbody td {
    padding: 18px 20px;
    font-size: 0.95rem;
    color: #111827;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.user-name {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.user-email {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
}

/* =========================
   VOORTGANGSBALK
========================= */

.progress-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 70px;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background-color: #ef4444;
    border-radius: 999px;
}

.details-link {
    color: #ef4444;
    font-weight: 600;
}

.details-link:hover {
    text-decoration: underline;
}

.empty-state {
    text-align: center;
    color: #6b7280;
    padding: 28px;
}

/* =========================
   ADMIN ACTIES
========================= */

.admin-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 48px;
    padding: 0 20px;
    background-color: #ef4444;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.export-button:hover {
    background-color: #dc2626;
}

/* =========================
   TITELS OP PAGINA'S
========================= */

h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111827;
}

.login-subtitle,
.admin-subtitle {
    text-align: left;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-filter-form {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .admin-page {
        padding: 32px 16px 48px;
    }

    .admin-header h1,
    h1 {
        font-size: 2.2rem;
    }

    .stat-card {
        padding: 20px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        border-bottom: 1px solid #e5e7eb;
        padding: 12px 0;
    }

    .admin-table td {
        border: none;
        padding: 10px 16px;
    }

    .admin-actions {
        justify-content: stretch;
    }

    .export-button {
        width: 100%;
    }
}