/**
 * ATV Ledenportaal - Stylesheet
 * Kleuren: teal (#1a4548), cream (#ffe2c7), lichtgrijs (#F6F6F6)
 * Font: Source Serif Pro
 */

/* ===== Basis ===== */
.atv-login-wrapper,
.atv-portal-wrapper {
    font-family: 'Source Serif Pro', Georgia, serif;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

/* ===== Inlogformulier ===== */
.atv-login-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}

.atv-login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
}

.atv-login-title {
    margin: 0 0 4px;
    font-size: 28px;
    font-weight: 700;
    color: #1a4548;
    text-align: center;
}

.atv-login-subtitle {
    margin: 0 0 28px;
    font-size: 15px;
    color: #666;
    text-align: center;
}

/* ===== Formulier ===== */
.atv-form-group {
    margin-bottom: 18px;
}

.atv-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a4548;
}

.atv-form-group input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Source Serif Pro', Georgia, serif;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #F6F6F6;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.atv-form-group input:focus {
    outline: none;
    border-color: #1a4548;
    box-shadow: 0 0 0 3px rgba(26, 69, 72, 0.15);
    background: #fff;
}

.atv-form-row {
    display: flex;
    gap: 16px;
}

.atv-form-row .atv-form-group { flex: 1; }

/* ===== Knoppen ===== */
.atv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Source Serif Pro', Georgia, serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
}

.atv-btn:active { transform: scale(0.98); }

.atv-btn-primary {
    width: 100%;
    background-color: #1a4548;
    color: #fff;
}

.atv-btn-primary:hover { background-color: #0f2e30; }

.atv-btn-outline {
    background: transparent;
    color: #1a4548;
    border: 1.5px solid #1a4548;
    padding: 8px 18px;
    font-size: 14px;
}

.atv-btn-outline:hover { background-color: #1a4548; color: #fff; }

/* ===== Spinner ===== */
.atv-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: atv-spin 0.6s linear infinite;
}

@keyframes atv-spin {
    to { transform: rotate(360deg); }
}

/* ===== Berichten & Banners ===== */
.atv-message {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}

.atv-message-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.atv-message-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.atv-banner {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.atv-banner-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ===== Portaal header ===== */
.atv-portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.atv-portal-title {
    margin: 0;
    font-size: 26px;
    color: #1a4548;
}

/* ===== Tabs ===== */
.atv-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
}

.atv-tab {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Source Serif Pro', Georgia, serif;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s, border-color 0.2s;
}

.atv-tab:hover { color: #1a4548; }
.atv-tab-active { color: #1a4548; border-bottom-color: #1a4548; }

.atv-tab-content { display: none; }
.atv-tab-content-active { display: block; }

/* ===== Kaarten ===== */
.atv-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px 24px;
    margin-bottom: 24px;
}

.atv-card-title { margin: 0 0 6px; font-size: 20px; color: #1a4548; }
.atv-card-description { margin: 0 0 22px; font-size: 14px; color: #666; }

/* ===== Gegevens grid ===== */
.atv-details-grid { margin: 16px 0 0; }

.atv-detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.atv-detail-row dt {
    flex: 0 0 180px;
    font-weight: 600;
    color: #1a4548;
    font-size: 14px;
}

.atv-detail-row dd {
    margin: 0;
    font-size: 14px;
    color: #333;
}

/* ===== Tabel ===== */
.atv-table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.atv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.atv-table th,
.atv-table td { padding: 12px 14px; text-align: left; white-space: nowrap; }

.atv-table th {
    background: #F6F6F6;
    font-weight: 600;
    color: #1a4548;
    border-bottom: 2px solid #e5e7eb;
}

.atv-table td { border-bottom: 1px solid #f0f0f0; }
.atv-table tbody tr:hover { background: #fafafa; }

/* ===== Badges ===== */
.atv-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

.atv-badge-success { background: #ecfdf5; color: #065f46; }
.atv-badge-warning { background: #fffbeb; color: #92400e; }
.atv-badge-error   { background: #fef2f2; color: #991b1b; }
.atv-badge-neutral { background: #f3f4f6; color: #6b7280; }

/* ===== Links ===== */
.atv-link {
    color: #1a4548;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.atv-link:hover { color: #0f2e30; }

/* ===== Lege toestand ===== */
.atv-empty-state {
    text-align: center;
    color: #999;
    padding: 24px 0;
    font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .atv-login-card { padding: 28px 20px; }
    .atv-portal-title { font-size: 22px; }
    .atv-tab { padding: 10px 14px; font-size: 14px; }
    .atv-card { padding: 20px 16px; }
    .atv-form-row { flex-direction: column; gap: 0; }

    .atv-detail-row {
        flex-direction: column;
        gap: 2px;
    }

    .atv-detail-row dt { flex: none; }
}
