:root {
    --primary: #C3378D; /* zwart */
    --accent: #C3378D;  /* roze */
    --bg: #f5f5f5;      /* lichte achtergrond */
    --text: #212529;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Urbanist', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* HEADER + NAV */
.header {
    background: var(--primary);
    color: var(--white);
    padding: 15px 0;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-link {
    display: inline-block;
    margin-right: 15px;
}

.logo {
    height: 60px;
    width: auto;
}

.header h1 {
    font-size: 2rem;
    text-align: center;
    flex: 1;
}

.menu-toggle {
    font-size: 1.8rem;
    background: none;
    border: none;
    color: var(--white);
    display: none;
    cursor: pointer;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background 0.3s;
}

.nav a:hover,
.nav a.active {
    background: black; /* zwart */
    color: var(--white);
}

/* MAIN CONTENT */
.main-content {
    padding: 40px 0;
}

.events-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
    font-size: 2rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.event-card h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

.event-date {
    font-weight: bold;
    color: #555;
    margin-bottom: 12px;
}

.event-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* FOOTER */
.footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin-top: 10px;
        gap: 10px;
    }

    .nav.open {
        display: flex;
    }

    .header h1 {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .logo-link {
        order: 1;
        margin: 0 auto;
    }
}

/* Admin pagina styling */
.admin-main {
    padding: 40px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2, .admin-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

/* Formulieren */
form.inline-form input,
form.inline-form textarea,
form.form-add input,
form.form-add textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
    margin-bottom: 10px;
}

form.inline-form textarea {
    height: 60px;
}

form.inline-form .actions,
.actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 4px;
}

form.inline-form button,
form.form-add button,
.btn {
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    transition: background-color 0.3s ease;
    user-select: none;
}

form.form-add button,
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
}

form.form-add button:hover,
.btn-primary:hover {
    background-color: #0095b6;
}

.btn-danger {
    background-color: #e63946;
}

.btn-danger:hover {
    background-color: #b02a36;
}

.btn-secondary {
    background-color: #778da9;
}

.btn-secondary:hover {
    background-color: #5a6b82;
}

/* Tabel styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.data-table th,
.data-table td {
    border: 1px solid #ddd;
    padding: 12px 18px;
    text-align: left;
    vertical-align: top;
    font-size: 1rem;
}

.data-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table textarea {
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    resize: vertical;
    min-height: 50px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
    padding: 8px;
}

/* Kleine optimalisatie voor mobiele Facebook widget */
@media (max-width: 600px) {
    .fb-wrapper {
        padding: 10px;
    }
}

/* Mobiele optimalisaties admin.php */
@media (max-width: 768px) {
    .admin-main {
        padding: 20px 15px;
    }

    .data-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    form.inline-form input,
    form.inline-form textarea,
    form.form-add input,
    form.form-add textarea {
        font-size: 1.1rem;
        padding: 12px 14px;
    }

    form.inline-form .actions,
    .actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    form.inline-form button,
    form.form-add button,
    .btn {
        width: 100%;
        padding: 14px 0;
        font-size: 1.1rem;
    }

    form.form-add {
        max-width: 100%;
    }

    .admin-section h2,
    .admin-section h3 {
        font-size: 1.4rem;
    }

    .admin-section {
        margin-bottom: 25px;
    }

    form.inline-form input,
    form.inline-form textarea {
        margin-bottom: 12px;
    }

    .data-table tbody tr {
        margin-bottom: 10px;
        display: block;
    }

    .data-table tbody td,
    .data-table tbody th {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .data-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary);
        display: block;
        margin-bottom: 6px;
    }

    .data-table thead {
        display: none;
    }
}