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

/* ----------------- BODY ----------------- */
body {
    font-family: Arial, sans-serif;
    background: #DCDBDB;
    color: #333;
}

/* ----------------- HEADER ----------------- */
.header {
    background: #6F7C5E;
    color: #DCDBDB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header .logo {
    font-weight: bold;
    font-size: 20px;
}

/* ----------------- NAVIGATION ----------------- */
nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin-right: 15px;
}

nav ul li a {
    color: #DCDBDB;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav ul li a:hover {
    background: #333;
}

/* Hamburger */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}


h1 {
    text-align: center;
    color: #6F7C5E;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5em;
}

/* ----------------- GRID CARDS (DASHBOARD) ----------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    padding: 0 20px;
    width: 100%;
}

/* card moet NIET centreren */
.card {
    display: flex;
    width: 100%;
}

/* knop vult volledige grid cel */
.grid .card .btn {
    display: flex !important;
    flex-direction: column !important; /* icoon boven tekst */
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    padding: 20px 25px !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    border-radius: 12px !important;

    color: #fff !important;
    text-decoration: none !important;

    box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;

    width: 100% !important;
    max-width: none !important;   /* 🔥 BELANGRIJK FIX */
}

/* icon styling */
.grid .card .btn i {
    font-size: 2em !important;
    margin-bottom: 10px !important;
}

/* hover effect */
.grid .card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.3);
}

/* Kleuren dashboard knoppen */
.grid .card .btn-red    { background: #D84A4A !important; }
.grid .card .btn-red:hover { background: #B33838 !important; }

.grid .card .btn-orange { background: #F2984A !important; }
.grid .card .btn-orange:hover { background: #D57A32 !important; }

.grid .card .btn-green  { background: #4CAF50 !important; }
.grid .card .btn-green:hover { background: #3E8E41 !important; }

.grid .card .btn-blue   { background: #2196F3 !important; }
.grid .card .btn-blue:hover { background: #0B7FC1 !important; }


/* =========================
   DESKTOP IMPROVEMENT GRID
   ========================= */
@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        justify-content: center;
    }
}

@media (min-width: 1400px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* ----------------- BUTTONS / ICONS ----------------- */
.btn {
    display: inline-flex;
    padding: 8px 12px;
    background: #6D1515;
    color: #FFE4B8;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #4A0F0F;
}

.icon-btn {
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    padding: 6px;
    border-radius: 5px;
    transition: background 0.3s;
}

/* ----------------- EVENTS TABLE ----------------- */
.event-table-wrapper {
    width: 100%;
    overflow: hidden; /* geen horizontale scroll */
}

.event-table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 14px;
}

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

.event-table th {
    background-color: #6F7C5E;
    color: #DCDBDB;
    font-weight: bold;
}

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

.event-table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

.event-table tbody tr:hover {
    background-color: #D1E0C6;
    transition: background 0.3s;
}

/* ----------------- FORM STYLING (EDIT EVENT) ----------------- */
.edit-form {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-form .form-group {
    display: flex;
    flex-direction: column;
}

.edit-form label {
    font-weight: 600;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 6px;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
    padding: 10px 12px;
    font-size: 0.95em;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border 0.2s;
}

.edit-form input:focus,
.edit-form select:focus,
.edit-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

.edit-form .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.edit-form .btn {
    padding: 10px 18px;
    font-size: 0.95em;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-form .btn i {
    font-size: 1em;
}

.edit-form .btn-blue {
    background: #4CAF50;
    color: #fff;
    border: none;
}

.edit-form .btn-blue:hover {
    background: #3E8E41;
}

.edit-form .btn-red {
    background: #D9534F;
    color: #fff;
    border: none;
}

.edit-form .btn-red:hover {
    background: #C9302C;
}

.edit-form .btn-back {
    background: transparent;
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit-form .btn-back:hover {
    color: #222;
}

/* Delete-section styling */
.delete-section {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.delete-section button {
    padding: 10px 18px;
    font-size: 0.95em;
    border-radius: 8px;
}

/* Feedback */
.feedback {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    max-width: 600px;
}

.feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ----------------- RESPONSIVE ----------------- */
@media(max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .btn {
        max-width: 100%;
        font-size: 1.4em;
        padding: 25px;
    }

    .btn i {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    nav {
        position: absolute;
        top: 60px;
        right: 0;
        background: #6F7C5E;
        width: 100%;
        display: none;
        z-index: 1000;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        padding: 10px 0;
    }

    nav ul li {
        margin: 15px;
    }

    .hamburger {
        display: block;
    }

    .edit-form {
        padding: 20px;
    }

    .edit-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-form .btn,
    .edit-form .btn-back {
        width: 100%;
        justify-content: center;
    }
}

@media(max-width: 480px) {
    .edit-form {
        padding: 15px 20px;
    }
}
/* ----------------- EDIT EVENT FORM ----------------- */
.edit-form {
    max-width: 600px;
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto; /* echt centreren */
}

.edit-form .form-group {
    display: flex;
    flex-direction: column;
}

.edit-form label {
    font-weight: 600;
    font-size: 0.95em;
    color: #555;
    margin-bottom: 6px;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
    padding: 10px 12px;
    font-size: 0.95em;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: border 0.2s;
}

.edit-form input:focus,
.edit-form select:focus,
.edit-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Form buttons */
.edit-form .form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.edit-form .btn {
    padding: 10px 18px;
    font-size: 0.95em;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-form .btn i {
    font-size: 1em;
}

/* Knopkleuren */
.edit-form .btn-blue {
    background: #4CAF50;
    color: #fff;
    border: none;
}

.edit-form .btn-blue:hover {
    background: #3E8E41;
}

.edit-form .btn-red {
    background: #D9534F;
    color: #fff;
    border: none;
}

.edit-form .btn-red:hover {
    background: #C9302C;
}

.edit-form .btn-back {
    background: transparent;
    color: #555;
    text-decoration: none;
    font-size: 0.9em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edit-form .btn-back:hover {
    color: #222;
}

/* Feedback */
.feedback {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    max-width: 600px;
}

.feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Delete-section */
.delete-section {
    max-width: 600px;
    width: 100%;
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.delete-section button {
    padding: 10px 18px;
    font-size: 0.95em;
    border-radius: 8px;
}

/* Responsive */
@media(max-width: 480px) {
    .edit-form {
        padding: 20px;
    }

    .edit-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-form .btn,
    .edit-form .btn-back,
    .delete-section button {
        width: 100%;
        justify-content: center;
    }
}

/* Annuleren-knop altijd zichtbaar en groen */
.btn-back {
    background: #4CAF50;   /* groene achtergrond */
    color: #fff;           /* witte tekst */
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background: #3E8E41;   /* donkerder groen bij hover */
    color: #fff;
}

/* ---------------- Responsive events table ---------------- */
.event-table-wrapper {
    overflow-x: auto; /* horizontaal scrollen indien nodig */
}

.event-table {
    width: 100%;
    border-collapse: collapse;
}

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

.event-table th.center,
.event-table td.center {
    text-align: center;
}

/* Mobile stacking */
@media (max-width: 768px) {
    .event-table thead {
        display: none; /* headers verbergen */
    }

    .event-table, 
    .event-table tbody, 
    .event-table tr, 
    .event-table td {
        display: block;
        width: 100%;
    }

    .event-table tr {
        margin-bottom: 15px;
        border-bottom: 2px solid #eee;
    }

    .event-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .event-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 45%;
        padding-right: 10px;
        font-weight: bold;
        text-align: left;
    }

    .event-table td.center {
        text-align: right;
    }
}

/* ===== KNOPPEN (globaal) ===== */
.btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-blue {
    background: #4CAF50;
    color: #fff;
}
.btn-blue:hover {
    background: #3E8E41;
}

.btn-red {
    background: #D9534F;
    color: #fff;
}
.btn-red:hover {
    background: #C9302C;
}

.btn-back {
    background: #ccc;
    color: #333;
}
.btn-back:hover {
    background: #bbb;
}

/* kleine knop (bv. in tabellen) */
.btn-small {
    padding: 6px 8px !important;
    font-size: 0.85em;
}

/* ===== RADIO BUTTONS (globaal) ===== */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f9f9f9;
    transition: all 0.2s;
}

.radio-group input[type="radio"]:checked + label {
    background: #4CAF50;
    color: #fff;
    border-color: #4CAF50;
}

.radio-icon {
    font-size: 1.1em;
}


/* =========================
   FIX: FULL HEIGHT LAYOUT
   ========================= */

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* =========================
   FIX: REMOVE “BOTTOM GRAY GAP FEEL”
   ========================= */

/* zorgt dat content altijd visueel “vol” voelt */
body {
    background-attachment: fixed;
}


html, body {
    height: 100%;
}

/* force full-page white content area */
body {
    background: #DCDBDB;
    display: flex;
    flex-direction: column;
}



/* container blijft zoals kaart */
.container {
    background: #fff;
}

/* FIX: volledige deelnemers-pagina wit maken */
body {
    background: #f9f9f9; /* zelfde als main in andere pagina’s */
}

/* zorg dat container echt de pagina vult */
.container {
    background: #fff;
}


main {
    display: block !important;
    width: 100%;
    padding: 20px;
    background: #f9f9f9;
}

.grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
}



/* =========================
   UNIVERSAL DASHBOARD GRID FIX
   (Safari / Chrome / Firefox safe)
   ========================= */

/* STOP FLEX IN MAIN (Safari fix) */
main {
    display: block !important;
    width: 100% !important;
    padding: 20px !important;
}

/* HARD GRID RESET */
.grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;

    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;

    align-items: stretch !important;
    justify-items: stretch !important;
}

/* CARD SAFARI FIX */
.card {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;   /* Safari overflow fix */
}

/* BUTTON FULL SIZE */
.grid .card .btn {
    width: 100% !important;
    max-width: none !important;
}

/* =========================
   RESPONSIVE SAFE BREAKPOINTS
   ========================= */

@media (max-width: 1000px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
}