﻿/* Tournament Result Form */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.form-control {
    border-radius: 6px;
}

/* Tournament Bracket */
.scrollable-tab-content {
    max-height: 80vh;
    overflow: auto;
    padding: 15px;
    /*border: 1px solid #dee2e6;*/
    border-top: none;
    background-color: var(--rz-layout-body-background-color);
}

.tournament-bracket {
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 0px; /* war 40px 20px*/
    background: var(--rz-layout-body-background-color);
    border-radius: 12px;
    min-width: 100%; /* neu */
    /*box-shadow: 0 4px 20px rgba(0,0,0,0.1);*/
    margin: 0px 0;
}

.bracket-tree {
    min-width: max-content; /* neu */
    display: flex;
    align-items: flex-start;
    gap: 100px;
    min-height: 600px;
    position: relative;
    padding: 20px 0px 20px 50px; /* Links 50px Padding für Boardnummern */
}

.bracket-column {
    display: flex;
    flex-direction: column;
    min-width: 200px; /* war 220 */
    position: relative;
    flex-shrink: 0;
}

.round-header {
    text-align: center;
    padding: 6px 16px; /* war 12px 16px */
    margin-bottom: 20px; /* war 30 */
    background: var(--rz-base); /*war #9ca3af;*/
    /*linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    border-radius: 6px;
    border-color: #2D2D2D;
    font-weight: 600;
    font-size: 0.95em;
    /*box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);*/
    position: sticky;
    top: 0;
    z-index: 10;
}

.matches-container {
    position: relative;
    flex: 1;
    min-height: 400px;
}

/* Match Wrapper - wird durch JavaScript positioniert */
.match-wrapper {
    position: absolute;
    z-index: 2;
    width: 200px;
    height: 64px; /* Fixe Höhe - Board-Label beeinflusst Positionierung nicht mehr! */
}

/* Board-Label im Kreis - links mittig neben der match-box */
.match-board-label {
    position: absolute;
    left: -36px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f59e0b; /* Orange */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 5;
}

.match-box {
    width: 200px;
    height: 64px; /* Fixe Höhe wie match-wrapper für konsistente Positionierung */
    background: white;
    border: 2px solid #e1e5e9; /*#e1e5e9;*/
    border-radius: 8px;
    overflow: hidden; /* Für korrekte border-radius Ecken */
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
    transition: all 0.3s ease;
    position: relative;
}

    .match-box:hover {
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        transform: translateY(-2px);
        border-color: #667eea;
    }

    .match-box.completed {
        border-color: var(--rz-success-dark); /*#10b981;*/
        background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    }

    .match-box.in-progress {
        border-color: #f59e0b;
        background: linear-gradient(135deg, #fefbf3 0%, #ffffff 100%);
    }

    .match-box.pending {
        border-color: #9ca3af;
        background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    }

.match-controls {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
}

.set-result-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .set-result-btn:hover {
        background: #5a67d8;
        transform: scale(1.1);
    }

.match-participant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px; /* 6 war 14 */
    position: relative;
    transition: all 0.2s ease;
}

    .match-participant.top {
        border-bottom: 1px solid #2D2D2D; /*#f3f4f6;*/
        background: var(--rz-base);
    }

    .match-participant.bottom {
        background: var(--rz-base);
    }

    .match-participant.winner {
        background: var(--rz-base); /*linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);*/
        font-weight: 700;
        color: #065f46;
    }

/*       .match-participant.winner::before {
            content: "🏆";
            position: absolute;
            left: 2px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 14px;
        }

        .match-participant.winner .participant-name {
            margin-left: 20px;
        }*/

.participant-name {
    flex: 1;
    font-size: 0.9em;
    font-weight: 500;
    color: #ffffff; /*#374151;*/
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 8px;
}

.participant-score {
    font-weight: 700;
    font-size: 0.9em;
    color: #2D2D2D; /*#6b7280;*/
    min-width: 32px;
    text-align: center;
    background: #F56F48; /*#f9fafb;*/
    padding: 4px 8px;
    border-radius: 0 6px 6px 0; /* Nur rechte Ecken abgerundet */
    margin-left: 8px;
}

    .participant-score top {
        /*       border-top-right-radius: 6px;
        font-weight: 700;
        font-size: 0.9em;
        color: #6b7280;
        min-width: 32px;
        text-align: center;
        background: #f9fafb;*/
        padding: 4px 8px;
    }

    .participant-score bottom {
        border-bottom-right-radius: 6px;
    }

.match-participant.winner .participant-score {
    background: var(--rz-success-dark); /*#F56F48;*/ /*#10b981;*/ /*muss grün werden*/
    color: #f9fafb; /*#2D2D2D;*/
}

/*Match Infobedge*/
.match-badge-info {
    background: var(--rz-info-dark);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8em;
    color: #f9fafb;
    display: inline-block;
    min-width: 40px;
    min-height: 16px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: -4px;
}

.match-badge-setup {
    background: var(--rz-secondary-dark);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8em;
    color: #f9fafb;
    display: inline-block;
    min-width: 40px;
    min-height: 16px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: -4px;
}

.match-badge-registration {
    background: var(--rz-series-8);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8em;
    color: #f9fafb;
    display: inline-block;
    min-width: 40px;
    min-height: 16px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: -4px;
}

.match-badge-inprogress {
    background: var(--rz-success-dark);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8em;
    color: #f9fafb;
    display: inline-block;
    min-width: 40px;
    min-height: 16px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: -4px;
}

.match-badge-completed {
    background: var(--rz-warning-dark);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8em;
    color: #f9fafb;
    display: inline-block;
    min-width: 40px;
    min-height: 16px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: -4px;
}

.match-badge-cancelled {
    background: var(--rz-danger-dark);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.8em;
    color: #f9fafb;
    display: inline-block;
    min-width: 40px;
    min-height: 16px;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: -4px;
}


/* Custom Connector Lines - von JavaScript generiert */
.custom-connector {
    position: absolute;
    background-color: #9ca3af;
    z-index: 1;
}

    .custom-connector.horizontal-out,
    .custom-connector.horizontal-in {
        height: 2px;
    }

    .custom-connector.vertical {
        width: 2px;
    }

/* Verbessertes Styling für TBD */
.participant-name:empty::after {
    content: "TBD";
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
}

.bracket-section {
    margin-bottom: 50px;
    /* background: white;*/
    border-radius: 12px;
    padding: 0px; /* war 25 */
    /* box-shadow: 0 4px 16px rgba(0,0,0,0.1);*/
}

    .bracket-section h4 {
        color: var(--rz-text-color); /* #1f2937 */
        font-size: 1.5em;
        font-weight: 700;
        margin-bottom: 30px;
        padding-bottom: 12px;
        border-bottom: 3px solid #667eea;
    }

/* Responsive Design */
@media (max-width: 1400px) {
    .bracket-tree {
        gap: 80px;
    }

    .match-wrapper {
        width: 180px;
    }

    .match-box {
        width: 180px;
    }
}

@media (max-width: 1200px) {
    .bracket-tree {
        gap: 60px;
    }

    .bracket-column {
        min-width: 160px;
    }

    .match-wrapper {
        width: 160px;
    }

    .match-box {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .tournament-bracket {
        padding: 20px 10px;
    }

    .bracket-tree {
        gap: 40px;
    }

    .bracket-column {
        min-width: 140px;
    }

    .match-wrapper {
        width: 140px;
    }

    .match-box {
        width: 140px;
    }

    .match-participant {
        padding: 10px 12px;
    }

    .participant-name {
        font-size: 0.8em;
    }

    .participant-score {
        font-size: 0.8em;
        min-width: 28px;
        padding: 3px 6px;
    }
}

/* Scrollbar Styling für bessere UX */
.tournament-bracket::-webkit-scrollbar {
    height: 8px;
}

.tournament-bracket::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.tournament-bracket::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

    .tournament-bracket::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Animation für Match Updates */
.match-box {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight für Teilnehmer-Mouseover */
.match-box.participant-highlight {
    background: rgba(255, 235, 59, 0.2) !important;
}

/* Verbindungslinien highlighten - DEAKTIVIERT */
/* .custom-connector.highlighted {
    background-color: #fbc02d !important;
    box-shadow: 0 0 8px rgba(251, 192, 45, 0.8) !important;
    z-index: 10 !important;
}

.custom-connector.horizontal-out.highlighted,
.custom-connector.horizontal-in.highlighted {
    height: 4px !important;
}

.custom-connector.vertical.highlighted {
    width: 4px !important;
} */

.participant-name {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 4px 2px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 0;
    user-select: none;
}

.participant-name::selection {
    background: transparent;
}

.participant-name:hover {
    background-color: rgba(255, 235, 59, 0.3);
}

/* Hervorgehobener Teilnehmer-Name */
.participant-name.name-highlight {
    background: linear-gradient(90deg, rgba(255, 235, 59, 0.8) 0%, rgba(255, 193, 7, 0.8) 100%) !important;
    color: #000 !important;
    font-weight: 700 !important;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin: 0;
    display: block;
    width: 100%;
}

/* Hervorgehobene Teilnehmer-Zeile (komplette Zeile inklusive Score) */
.match-participant.participant-row-highlight {
    background: linear-gradient(90deg, rgba(255, 235, 59, 0.7) 0%, rgba(255, 193, 7, 0.7) 100%) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

    .match-box.updated {
        animation: highlightMatch 1s ease-out;
    }

/* Swiss System Specific Styles */
.swiss-system-container {
    padding: 0px; /*war 20px*/
}

.swiss-round-section {
    /*   border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    background: #f8f9fa;*/
}

.round-header-swiss {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.swiss-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.swiss-match-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 5px; /*war 15px*/
    background: white;
    transition: all 0.3s ease;
}

    .swiss-match-card:hover {
        /* box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
    }

    .swiss-match-card.completed {
        border-color: #28a745;
        background: #f8fff9;
    }

    .swiss-match-card.in-progress {
        border-color: #ffc107;
        background: #fffdf5;
    }

    .swiss-match-card.pending {
        border-color: #6c757d;
    }

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.match-number {
    color: #6c757d;
    font-size: 0.9em;
}

.swiss-participants {
    margin-bottom: 10px;
}

.participant-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 8px 12px;*/
    border-radius: 6px;
    margin: 2px 0;
    background: var(--rz-base); /*#f8f9fa;*/
}

    .participant-row.winner {
        background: var(--rz-base); /*#d4edda;*/
        /*border: 1px solid #c3e6cb;*/
        border-radius: 6px;
        font-weight: bold;
    }

.vs-separator {
    text-align: center;
    font-weight: bold;
    color: #6c757d;
    margin: 5px 0;
}

.participant-name {
    flex: 1;
}

.participant-score {
    font-weight: bold;
    font-size: 1.1em;
    min-width: 30px;
    text-align: center;
    border-radius: 0 6px 6px 0; /* Nur rechte Ecken abgerundet */
}

.match-status {
    text-align: center;
}

.swiss-standings {
    /*   background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;*/
}

@keyframes highlightMatch {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
}

/* Board Status Styles */
.board-assigned {
    font-weight: 500;
}

.board-not-assigned {
    color: #6c757d;
    font-style: italic;
}

.board-in-progress {
    color: #ffc107;
    font-weight: bold;
}

.board-completed {
    color: #198754;
}

.board-pending {
    color: #0dcaf0;
}

/* Board Badge Styles */
.board-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    min-width: 60px;
}

    .board-badge.assigned {
        background-color: #e3f2fd;
        color: #1976d2;
        border: 1px solid #bbdefb;
    }

    .board-badge.in-progress {
        background-color: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }

    .board-badge.completed {
        background-color: #d1e7dd;
        color: #0f5132;
        border: 1px solid #a3cfbb;
    }

    .board-badge.not-assigned {
        background-color: #f8f9fa;
        color: #6c757d;
        border: 1px solid #dee2e6;
    }

/* DataGrid Board Column Styles */
.rz-datatable-data td.board-column {
    text-align: center;
    vertical-align: middle;
}

/* Optional: Hover effect für Board-Spalte */
.board-display:hover {
    cursor: pointer;
    opacity: 0.8;
}


/* Boardzuweisungsdialog */
.confirmation-icon {
    flex-shrink: 0;
}

    .confirmation-icon RadzenIcon {
        color: var(--success-text);
        font-size: 1.5rem; /* Kleineres Icon für kompakte Darstellung */
    }
/* Root Variables für Dark/Light Mode */
:root {
    --dialog-text-secondary: var(--rz-text-secondary-color, #6c757d);
    --dialog-border: var(--rz-border-color, #dee2e6);
    --dialog-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --preview-border: var(--rz-primary, #0d6efd);
    --success-bg: var(--rz-success-lighter, #d1edff);
    --success-border: var(--rz-success-light, #b6e3ff);
    --success-text: var(--rz-success-dark, #0a58ca);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
}

/* Basis Layout */
.assign-board-dialog {
    max-width: 700px;
    width: 100%;
    background: var(--dialog-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--dialog-shadow);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Header */
.dialog-header {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--dialog-border);
}

.dialog-title {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--dialog-text);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.dialog-subtitle {
    margin: 0;
    color: var(--dialog-text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Main Content */
.dialog-content {
    flex: 1;
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    overflow-y: auto;
}

/* Dropdown Grid für nebeneinander Darstellung */
.dropdown-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Match breiter, Board schmaler */
    gap: var(--spacing-lg);
}

.dropdown-container {
    display: flex;
    flex-direction: column;
}

/* Spezifische Dropdown-Breiten */
.match-dropdown {
    /* Match Dropdown nimmt 2/3 der Breite */
    /*width: 75%;*/
}

.board-dropdown {
    /* Board Dropdown nimmt 1/3 der Breite */
    /*width: 25%;*/
}

/* Kombinierte Status Card */
.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.status-item {
    /* Einzelne Status Items in der kombinierten Card */
}

/* Sections */
.selection-section,
.status-section,
.confirmation-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.section-title {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--dialog-text);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-icon {
    font-size: 1.2rem;
    color: var(--preview-border);
}

/* Cards - Alle auf gleiche kompakte Höhe */
.selection-card,
.status-card,
.confirmation-card {
    background: var(--section-bg);
    border: 1px solid var(--dialog-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md); /* Kompakteres Padding für alle Cards */
    height: fit-content;
    min-height: 60px; /* Einheitliche Mindesthöhe */
    display: flex;
    align-items: center; /* Vertikale Zentrierung des Inhalts */
}

/* Spezielle Anpassungen für Confirmation Card */
.confirmation-card {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    animation: fadeInScale 0.3s ease-out;
}

/* Kompakte Status Cards */
.status-card.compact {
    padding: var(--spacing-md); /* Gleiches Padding wie andere Cards */
}

.status-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.status-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
}

.status-icon {
    color: var(--preview-border);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.status-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 0;
}

.status-title {
    font-weight: 600;
    color: var(--dialog-text);
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-detail {
    color: var(--dialog-text-secondary);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-extra {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.status-timestamp {
    color: var(--dialog-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.status-unused {
    color: var(--rz-success, #198754);
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-badge {
    font-size: 0.75rem !important;
}

/* Form Fields - Kompakter für einheitliche Höhe */
.form-field {
    margin-bottom: 0; /* Kein zusätzlicher Margin für kompakte Darstellung */
}

.dropdown-grid {
    align-items: center; /* Dropdowns vertikal zentrieren */
}

.full-width-dropdown {
    width: 100% !important;
    min-width: 100% !important;
}

/* Confirmation Card - Angepasst für einheitliche Höhe */
.confirmation-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    width: 100%; /* Volle Breite nutzen */
}

.confirmation-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.confirmation-title {
    margin: 0;
    color: var(--success-text);
    font-size: 1rem; /* Kleinere Schrift für kompakte Darstellung */
    font-weight: 600;
    line-height: 1.2;
}

.confirmation-description {
    margin: 0;
    color: var(--dialog-text-secondary);
    font-size: 0.75rem; /* Kleinere Schrift für kompakte Darstellung */
    line-height: 1.3;
}

/* Footer Actions */
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl);
    border-top: 1px solid var(--dialog-border);
    background: var(--dialog-bg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.action-button {
    min-width: 120px;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .assign-board-dialog {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }

    /* Auf mobilen Geräten Dropdowns untereinander */
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .dialog-header {
        padding: var(--spacing-lg);
    }

    .dialog-title {
        font-size: 1.25rem;
    }

    .dialog-content {
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }

    .confirmation-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }

    .dialog-actions {
        flex-direction: column-reverse;
        gap: var(--spacing-sm);
        padding: var(--spacing-lg);
    }

    .action-button {
        width: 100%;
        min-width: unset;
    }

    .status-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .status-extra {
        align-self: flex-end;
    }
}

@media (max-width: 640px) {
    .selection-card,
    .status-card {
        padding: var(--spacing-md);
    }

        .status-card.compact {
            padding: var(--spacing-sm);
        }

    .section-title {
        font-size: 1rem;
    }

    .dialog-content {
        gap: var(--spacing-md);
    }
}

/* Focus States für Accessibility */
.full-width-dropdown:focus-within {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

.action-button:focus {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .selection-card,
    .status-card {
        border-width: 2px;
    }

    .confirmation-card {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .confirmation-card {
        animation: none;
    }
}

/* Paymentfeatures */
.payment-summary {
    text-align: center;
}

    .payment-summary h4 {
        margin-bottom: 20px;
        color: var(--rz-text-color);
    }

.payment-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--rz-primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--rz-text-secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Kompakte Statistik-Anzeige für Boardmanagement Card (horizontal) */
.quick-stat-compact {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.875rem;
}

.stat-number-compact {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--rz-primary);
}

.stat-label-compact {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}

.payment-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.unpaid-participants-details {
    margin-top: 10px;
}

    .unpaid-participants-details summary {
        cursor: pointer;
        font-size: 0.875rem;
        text-decoration: underline;
    }

        .unpaid-participants-details summary:hover {
            color: var(--rz-warning-dark);
        }

    .unpaid-participants-details ul {
        list-style: none;
        padding-left: 0;
    }

    .unpaid-participants-details li {
        padding: 2px 0;
        font-size: 0.875rem;
    }

/* Start Button States */
.rz-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

    .rz-button:disabled:hover {
        transform: none;
    }

/* Alert Improvements */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #a3cfbb 100%);
    border-left: 4px solid #198754;
}

.alert h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

.payment-status-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-status-text {
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .payment-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .stat-item {
        min-width: 100px;
    }
}

/* Gamemode */
.game-mode-configuration {
    padding: 20px;
}

.game-mode-section {
    /*background: var(--rz-base);*/
    /*border-radius: 8px;*/
    padding: 20px;
    border: 1px solid var(--rz-border-color);
}

.mode-badge {
    display: inline-block;
    background: var(--rz-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.mode-preview {
    font-family: monospace;
    background: var(--rz-secondary-lighter);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--rz-text-color);
}

.mode-display {
    font-weight: 500;
    color: var(--rz-warning);
}

.game-mode-display {
    padding: 15px;
    background: var(--rz-secondary-lighter);
    border-radius: 8px;
    border-left: 4px solid var(--rz-primary);
}

/* GameMode UI */
.match-gamemode-config {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gamemode-quick-edit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-mode {
    font-family: monospace;
    font-size: 0.8rem;
    background: var(--rz-secondary-lighter);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--rz-text-color);
}

.mode-readonly {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--rz-text-secondary-color);
}

.mode-display {
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rz-warning);
}

.game-mode-preview {
    padding: 1rem;
    background: var(--rz-secondary-lighter);
    border-radius: 8px;
    border-left: 4px solid var(--rz-primary);
    color: var(--rz-text-color);
}

/* Bulk-Operations */
.bulk-config-controls {
    background: var(--rz-secondary-lighter);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--rz-border-color);
}

.bulk-preview {
    padding: 15px;
    background: var(--rz-info-lighter);
    border-radius: 6px;
    border-left: 4px solid var(--rz-info);
    color: var(--rz-text-color);
}

.bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.current-config {
    color: var(--rz-text-secondary-color);
    text-decoration: line-through;
}

.new-config {
    color: var(--rz-success);
    font-weight: 600;
}

/* Qualifizierte Zeilen in Gruppentabelle */
.qualified-row {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%) !important;
    border-left: 3px solid var(--rz-success-dark);
}
