/* =========================
   GLOBAL PAGE
========================= */
.race-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 24px;
}

/* =========================
   HEADER
========================= */
.race-header-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #ffffff;
}

.race-page-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #bfdbfe;
}

.race-page-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 900;
}

.race-page-subtitle {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #dbeafe;
}

/* =========================
   BUTTONS BASE
========================= */
.race-btn,
.race-primary-btn,
.race-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    border-radius: 12px;
}

/* =========================
   DASHBOARD BUTTON
========================= */
.race-dashboard-btn {
    min-height: 54px;
    padding: 0 26px;
    font-size: 17px;
    font-weight: 900;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

    .race-dashboard-btn:hover {
        transform: translateY(-2px);
        background: #f8fafc;
    }

/* =========================
   PRIMARY BUTTON
========================= */
.race-primary-btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    background: #2563eb;
    color: #fff;
    border: 1px solid #2563eb;
}

    .race-primary-btn:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
        transform: translateY(-1px);
    }

/* =========================
   CARDS
========================= */
.race-table-card,
.race-filter-card,
.race-form-card,
.race-detail-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

/* =========================
   INPUTS
========================= */
.race-input {
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    outline: none;
    transition: 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

    .race-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.14);
    }

/* =========================
   FORM GROUP
========================= */
.race-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .race-form-group label {
        font-size: 13px;
        font-weight: 800;
        color: #334155;
    }

/* =========================
   CYCLIST DUAL LIST (FIXED)
========================= */
.cyclist-dual-container {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
}

.cyclist-box {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* SCROLL LIST */
.cyclist-list {
    max-height: 480px; /* beter afgestemd op ~15 items */
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    padding: 6px;
}

/* ITEM */
.cyclist-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    transition: 0.15s ease;
}

    .cyclist-item:hover {
        background: #f1f5f9;
    }

/* SELECTED */
.selected-item {
    background: #dbeafe;
    color: #1d4ed8;
}

/* =========================
   STAGES
========================= */
.stage-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* =========================
   ACTIONS
========================= */
.race-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* =========================
   LIGHT / DANGER BUTTONS
========================= */
.race-light-btn {
    background: #eef2ff;
    color: #1e3a8a;
}

    .race-light-btn:hover {
        background: #e0e7ff;
    }

.race-danger-btn { 
    background: #dc2626;
    color: #fff;
}

    .race-danger-btn:hover {
        background: #b91c1c;
    }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .race-header-card {
        flex-direction: column;
        align-items: stretch;
    }

    .race-dashboard-btn {
        width: 100%;
    }

    .cyclist-dual-container {
        flex-direction: column;
        align-items: stretch;
    }

    .cyclist-box {
        width: 100%;
    }
}
