/* Algemene stijlen */
:root {
    --primary-color: #1d428a; /* NBA blauw */
    --secondary-color: #c9082a; /* NBA rood */
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

/* Header stijlen */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin-bottom: 0.5rem;
}

nav {
    display: flex;
    gap: 1rem;
}

nav a {
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--dark-color);
    color: white;
    margin-top: 2rem;
}

/* Knoppen */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0d2c6e;
    text-decoration: none;
}

/* Formulieren */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Authenticatie pagina's */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
}

.auth-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-message {
    color: var(--error-color);
    background-color: #f8d7da;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
}

.success-message {
    color: var(--success-color);
    background-color: #d4edda;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

/* Conference voorspellingen */
.conference-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.conference {
    flex: 1;
    min-width: 300px;
}

.team-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 500px;
    padding: 0.5rem;
}

.team-item {
    background-color: #f8f9fa;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary-color);
}

.team-item:hover {
    background-color: #e9ecef;
}

.position-badge {
    background-color: var(--secondary-color);
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9ecef;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .conference-container {
        flex-direction: column;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Voeg toe aan het CSS bestand */

/* Admin specifieke stijlen */
.admin-stats {
    background-color: #f0f8ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.admin-stats p {
    margin-bottom: 0.5rem;
}

.deadline-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #ffeeba;
}

/* Score details */
.score-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.score-details .conference {
    flex: 1;
    min-width: 300px;
}

.score-details table {
    width: 100%;
}

.score-details th, .score-details td {
    padding: 0.5rem;
}

.btn.small {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

/* Admin team items */
.team-item input[type="number"] {
    width: 60px;
    padding: 0.3rem;
    margin-left: 0.5rem;
}

/* Voeg toe aan CSS */
.info-message {
    background-color: #e7f5ff;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #d0ebff;
}

.my-predictions ol {
    list-style-type: none;
    padding-left: 0;
}

.my-predictions ol li {
    padding: 0.5rem;
    margin-bottom: 0.3rem;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

/* Voeg deze stijlen toe */
.team-item.unselected {
    opacity: 0.7;
    border-left-color: #ccc;
}

.team-item.unselected .team-name {
    color: #666;
}

.info-message {
    background-color: #e7f5ff;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #d0ebff;
}

.team-item {
    touch-action: none; /* Zorgt voor betere touch controle */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none; /* Voorkom tekstselectie tijdens slepen */
}

.team-item.dragging {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1000;
}

.team-placeholder {
    background-color: rgba(29, 66, 138, 0.1);
    border: 2px dashed var(--primary-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .team-item {
        padding: 1rem; /* Groter tap target voor mobiel */
    }
    
    .team-name {
        font-size: 1.1rem; /* Groter lettertype voor mobiel */
    }
    
    .position-badge {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .conference {
        min-width: 100%; /* Volledige breedte op mobiel */
    }
    
    .conference-container {
        flex-direction: column;
    }
}

/* Voeg deze stijlen toe */

.conference-predictions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.conference {
    flex: 1;
    min-width: 300px;
}

.prediction-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.prediction-list li {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary-color);
}

.prediction-list .position {
    font-weight: bold;
    margin-right: 1rem;
    min-width: 25px;
    text-align: right;
}

/* Medaille kleuren */
.medal {
    font-weight: bold;
}

.medal-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFEC8B 100%);
    border-left-color: #daa520;
}

.medal-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #E6E6E6 100%);
    border-left-color: #a8a8a8;
}

.medal-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #E6C8A8 100%);
    border-left-color: #a05c18;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .conference-predictions {
        flex-direction: column;
    }
    
    .conference {
        min-width: 100%;
    }
    
    .prediction-list li {
        padding: 1rem;
    }
}

/* Voeg stijl toe voor puntenweergave */
.points-3 {
    color: var(--success-color);
    font-weight: bold;
}

.points-1 {
    color: #ffc107;
    font-weight: bold;
}

.points-0 {
    color: #6c757d;
}

.score-summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.score-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.score-card.total {
    background-color: var(--primary-color);
    color: white;
}

.score-card h3 {
    margin-top: 0;
    color: inherit;
    border-bottom: none;
}

.score-value {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 0.5rem;
}

.score-card.total .score-value {
    color: white;
}

.points-3 {
    color: var(--success-color);
    font-weight: bold;
}

.points-1 {
    color: #ffc107;
    font-weight: bold;
}

.points-0 {
    color: #6c757d;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .score-summary {
        flex-direction: column;
    }
    
    .score-card {
        min-width: 100%;
    }
}

.scoring-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
}

.scoring-info h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.scoring-info ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.leaderboard-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.summary-card {
    flex: 1;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.summary-card ol {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.summary-card li {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.total-score {
    font-weight: bold;
    background-color: #f8f9fa;
}

/* Medaille kleuren voor top 3 */
.medal-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFEC8B 100%);
}

.medal-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #E6E6E6 100%);
}

.medal-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #E6C8A8 100%);
}

@media (max-width: 768px) {
    .leaderboard-summary {
        flex-direction: column;
    }
}

.analysis-container {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.conference-analysis {
    flex: 1;
    min-width: 300px;
}

.analysis-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.analysis-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem;
    text-align: left;
}

.analysis-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
}

/* Resultaat kleuren */
.correct {
    background-color: rgba(40, 167, 69, 0.1);
}

.close {
    background-color: rgba(255, 193, 7, 0.1);
}

.incorrect {
    background-color: rgba(220, 53, 69, 0.05);
}

.result-correct {
    color: var(--success-color);
    font-weight: bold;
}

.result-close {
    color: #ffc107;
    font-weight: bold;
}

.result-incorrect {
    color: #dc3545;
}

/* Responsive aanpassingen */
@media (max-width: 768px) {
    .analysis-container {
        flex-direction: column;
    }
    
    .conference-analysis {
        min-width: 100%;
    }
}