:root{
    --bg: #f6f2e8;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --brand: #0f766e;
    --brand-dark: #0b5c56;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --border: #e5e0d7;
}

body{
    font-family: "Poppins", "Trebuchet MS", sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(1200px 600px at 20% -10%, #fff3d6 0%, #f6f2e8 40%, #eef2f7 100%);
    color: var(--text);
    min-height: 100vh;
}

.container,
.containerSignup {
    width: 70%;
    max-width: 900px;
    padding: 20px;
    background-color: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    margin: 20px auto;
}

.nav-bar{
    background-color: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    padding: 10px;
}

.nav-bar .nav-button{
    padding: 10px 20px;
    background-color: var(--brand);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    margin: 6px;
    transition: background-color 0.2s ease;
}

.nav-bar .nav-button:hover{
    background-color: var(--brand-dark);
}

.containerSignup form {
    display: none;
    width: 100%;
}

.containerSignup form.active {
    display: block;
}

.containerSignup form input,
.container form input,
.container form select,
.containerSignup form select,
.container form button,
.containerSignup form button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.container form button,
.containerSignup form button {
    background-color: var(--brand);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.container form button:hover,
.containerSignup form button:hover {
    background-color: var(--brand-dark);
}

.toggle {
    margin-top: 20px;
    text-align: center;
}

.toggle button {
    background: none;
    border: none;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
}

textarea{
    width: 100%;
    height: 60px;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: #fff;
    resize: vertical;
}

.message {
    margin-bottom: 15px;
    color: #15803d;
    font-weight: bold;
}

.chat-messages{
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.wedstrijden-tabel {
    width: 100%;
    margin-top: 30px;
}

.wedstrijden-tabel table {
    width: 100%;
    border-collapse: collapse;
}

.wedstrijden-tabel th,
.wedstrijden-tabel td {
    border-bottom: 1px solid var(--border);
    padding: 12px;
    text-align: left;
}

.wedstrijden-tabel th {
    background-color: #fff3d6;
    color: #7c2d12;
    font-weight: 600;
}

.wedstrijden-tabel tr:hover {
    background-color: #fff8e8;
}

.delete-btn {
    background-color: var(--accent);
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: var(--accent-dark);
}

/* Mobile responsief */
@media (max-width: 768px) {
    .container, .containerSignup {
        width: 95%;
        max-width: 100%;
        padding: 10px;
        margin-top: 10px;
    }

    .nav-bar {
        flex-wrap: wrap;
        padding: 5px;
    }

    .nav-bar .nav-button {
        padding: 8px;
        margin: 5px;
        font-size: 14px;
    }

    .poule-content {
        flex-direction: column !important;
    }

    .chat-section {
        max-width: 100% !important;
        margin-top: 20px;
    }

    .deelnemers-section {
        width: 100%;
    }

    table th, table td {
        padding: 8px;
        font-size: 14px;
    }

    .chat-messages {
        max-height: 300px !important;
    }

    textarea {
        height: 60px;
        font-size: 16px;
    }

    .chat-form {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container, .containerSignup {
        width: 98%;
        padding: 8px;
    }

    .nav-bar .nav-button {
        padding: 6px;
        margin: 3px;
        font-size: 12px;
    }

    h1, h2 {
        font-size: 20px;
    }

    table th, table td {
        padding: 6px;
        font-size: 12px;
    }

    .chat-messages {
        max-height: 250px !important;
    }

    textarea {
        height: 50px;
        font-size: 14px;
    }
}

