/* css/styles.css - Alle styling voor het voetbalkamp management systeem */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #B62D38 0%, #353535 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    white-space: nowrap;
}

.nav-tab:hover {
    background: rgba(103, 126, 234, 0.1);
}

.nav-tab.active {
    background: linear-gradient(135deg, #B62D38, #353535);
    color: white;
    box-shadow: 0 5px 15px rgba(182, 45, 56, 0.4);
}

.tab-content {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

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

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #B62D38;
    box-shadow: 0 0 0 3px rgba(182, 45, 56, 0.1);
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #B62D38, #353535);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(182, 45, 56, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #56ab2f, #a8e6cf);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 18px;
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col {
    flex: 1;
    padding: 10px;
    min-width: 250px;
}

.debug {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
    max-width: 300px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #B62D38, #353535);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(182, 45, 56, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

.delete-btn:hover {
    background: #c82333;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e8ed;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.table tr:hover {
    background: #f8f9fa;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.badge-success { background: #28a745; }
.badge-primary { background: #007bff; }
.badge-warning { background: #ffc107; color: #212529; }
.badge-secondary { background: #6c757d; }
.badge-info { background: #17a2b8; }

.action-buttons {
    display: flex;
    gap: 5px;
}

.edit-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.edit-btn:hover {
    background: #138496;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* ===== SPELLEN SYSTEEM SPECIFIC STYLING ===== */

.spel-sub-nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.spel-sub-nav-tab {
    flex: 1;
    padding: 10px 15px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.spel-sub-nav-tab:hover {
    background: rgba(103, 126, 234, 0.1);
    color: #333;
}

.spel-sub-nav-tab.active {
    background: linear-gradient(135deg, #B62D38, #353535);
    color: white;
    box-shadow: 0 3px 10px rgba(182, 45, 56, 0.3);
}

.spel-sub-tab-content {
    display: none;
}

.spel-sub-tab-content.active {
    display: block;
}

/* ===== CATEGORIE SELECTIE STYLING ===== */

.categorie-selectie {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.categorie-option {
    position: relative;
}

.categorie-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.categorie-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.categorie-label:hover {
    border-color: #B62D38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(182, 45, 56, 0.1);
}

.categorie-label.voetbal {
    border-left: 4px solid #2196F3;
}

.categorie-label.activiteiten {
    border-left: 4px solid #FF9800;
}

.categorie-option input[type="radio"]:checked + .categorie-label {
    border-color: #B62D38;
    background: linear-gradient(135deg, #B62D3815, #35353515);
    box-shadow: 0 5px 20px rgba(182, 45, 56, 0.2);
}

.categorie-label i {
    font-size: 2rem;
    color: #B62D38;
}

.categorie-label div strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.categorie-label div small {
    color: #666;
    font-size: 0.9rem;
}

/* ===== CONFIGURATIE SECTIES ===== */

.configuratie-sectie {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #B62D38;
}

#activiteiten-configuratie {
    border-left-color: #FF9800;
}

/* ===== FORM ACTIONS ===== */

.form-actions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    border: 1px solid #e1e8ed;
}

.sessie-preview {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* Card header met flex layout */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

/* Leeftijdsgroepen selectie */
.leeftijdsgroepen-selectie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    border: 1px solid #e1e8ed;
}

.checkbox-label:hover {
    background: rgba(0, 0, 0, 0.05);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
}

.groep-info {
    display: flex;
    flex-direction: column;
}

.groep-info small {
    color: #666;
    font-size: 0.85em;
}

/* Teams grid styling */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.team-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: #f8f9fa;
    transition: transform 0.2s ease;
}

.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.veld-badge {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.team-spelers {
    font-size: 0.9rem;
}

.speler-item {
    padding: 2px 0;
    color: #666;
}

/* Wedstrijden grid styling */
.wedstrijden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.wedstrijd-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: transform 0.2s ease;
}

.wedstrijd-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wedstrijd-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.wedstrijd-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.team {
    text-align: center;
    font-weight: bold;
    flex: 1;
}

.team.thuis {
    color: #007bff;
}

.team.uit {
    color: #dc3545;
}

.score {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.score input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    font-weight: bold;
}

.wedstrijd-status {
    text-align: center;
    margin-top: 10px;
}

/* Ronde cards */
.ronde-card {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.ronde-card .card-header-flex {
    background: linear-gradient(135deg, #B62D38, #353535);
    color: white;
}

.ronde-actions {
    display: flex;
    gap: 10px;
}

/* Spel detail styling */
.spel-detail-header {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px 8px 0 0;
}

.spel-detail-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
    padding: 0 20px;
}

.sessie-info {
    margin: 10px 0;
}

.sessie-info .badge {
    margin-right: 8px;
}

/* Loading states */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    .categorie-selectie {
        grid-template-columns: 1fr;
    }
    
    .categorie-label {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .spel-sub-nav-tabs {
        flex-direction: column;
    }
    
    .teams-grid,
    .wedstrijden-grid {
        grid-template-columns: 1fr;
    }
    
    .leeftijdsgroepen-selectie {
        grid-template-columns: 1fr;
    }
    
    .wedstrijd-teams {
        flex-direction: column;
        gap: 10px;
    }
    
    .score {
        margin: 10px 0;
    }
    
    .card-header-flex {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .spel-detail-actions {
        flex-direction: column;
    }
}

/* ===== PRINT STYLING ===== */

@media print {
    .spel-detail-actions,
    .ronde-actions,
    .card-header-flex button,
    .spel-sub-nav-tabs {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #333;
    }
    
    .ronde-card {
        page-break-inside: avoid;
    }
}