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

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    font-size: 16px;
}

h1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 10px;
    background-color: #333;
    color: #fff;
    text-align: center;
}

h2 {
    color: #007bff;
}

p {
    margin: 5px 0;
    color: #666;
}

/* ----------------------------------
   TABLE STYLES
---------------------------------- */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
    margin-top: 0;
    border: none;
    table-layout: auto;
    min-width: 100%;
}

th,
td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
    word-break: break-word;
}

th {
    font-size: 15px;
    top: 0;
    background-color: #007bff;
    color: white;
    padding-top: 12px;
    padding-bottom: 12px;
}

.event-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.event-row:hover {
    background-color: #94a6ff;
}

.event-actions {
    white-space: nowrap;
}

.game-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

.game-row:hover {
    background-color: #e0e0e0;
}

.game-actions {
    white-space: nowrap;
}

/* ----------------------------------
   FORM ELEMENTS
---------------------------------- */
label {
    display: inline-block;
    width: 150px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

form {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.form-group button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.form-group button:hover {
    background-color: #0056b3;
}

.form-group label input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
}

/* ----------------------------------
   BUTTONS
---------------------------------- */
.add-button,
.edit-button,
.ok-button,
.delete-button,
.modern-button,
.move-button,
.toggle-button,
.close-button,
.merge-button,
.print-button {
    display: inline-block;
    padding: 10px 10px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-button {
    background-color: #4CAF50;
    color: #fff;
}

.add-button:hover {
    background-color: #45a049;
}

.edit-button {
    background-color: #bd7200;
    color: #fff;
}

.edit-button:hover {
    background-color: #ff621a;
}

.ok-button {
    background-color: #4CAF50;
    color: #000;
}

.delete-button {
    background-color: #a34857;
    color: #fff;
}

.delete-button:hover {
    background-color: #cd0a2a;
}

.modern-button {
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
}

.modern-button:hover {
    background-color: #0056b3;
}

.move-button {
    background-color: #4850a3;
    color: #fff;
}

.move-button:hover {
    background-color: #0a23cd;
}

.close-button {
    background-color: #dc3545;
    color: white;
    margin-top: 15px;
}

.close-button:hover {
    background-color: #c82333;
}

.tiny-button {
    font-size: 0.8em;
    padding: 2px 4px;
    margin-left: 5px;
    background-color: #eee;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-button {
    background-color: #4caf50;
    /* Groen */
}

.toggle-button:hover {
    background-color: #45a049;
    /* Donkergroen bij hover */
}

.merge-button {
    background-color: #4CAF50;
    color: white;
}

.merge-button:hover {
    background-color: #45a049;
}

.print-button {
    background-color: #7e7e7e;
    color: white;
}

/* ----------------------------------
   CONTAINERS & LAYOUT
---------------------------------- */
.container {
    width: 90%;
    max-width: 100%;
    margin: 20px auto;
    background: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.containerStart {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#data-table {
    border: none !important;
}

/* ----------------------------------
   EVENT ELEMENTS
---------------------------------- */
.event {
    border-bottom: 1px solid #eee;
    width: 400px;
    padding: 0;
    display: block;
    color: inherit;
    text-decoration: none;
}

.event:hover {
    background-color: #f0f0f0;
}

.event-header {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.event-details {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.event-details p {
    margin: 5px 0;
    flex: 1 1 45%;
}

.event-content {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ----------------------------------
   POPUPS & OVERLAYS
---------------------------------- */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.popup-content {
    background-color: #fefefe;
    position: absolute;
    padding: 0;
    border: 1px solid #888;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 800px;
    max-height: 90%;
    z-index: 3;
    transform: translateX(-50%);
    left: 50%;
    top: -20px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* ----------------------------------
   MESSAGES
---------------------------------- */
.confirmation-message,
.alert-message,
.error-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.confirmation-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-message {
    background: #fffbe6;
    color: #a67c00;
    border: 1px solid #ffe58f;
    margin-bottom: 20px;
}

/* ----------------------------------
   STATUS INDICATORS
---------------------------------- */
p strong.status-live {
    color: #76c043;
}

p strong.status-not-live {
    color: #ff4141;
}

/* ----------------------------------
   LIST
---------------------------------- */
.verwijder-list {
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.06);
    padding: 14px 18px;
    margin-bottom: 18px;
}

.verwijder-list label {
    font-weight: bold;
    color: #333;
    width: 120px;
    display: inline-block;
    margin-bottom: 4px;
}

.verwijder-list p {
    margin: 0 0 8px 0;
    font-size: 15px;
}

/* ----------------------------------
   RESPONSIVE DESIGN
---------------------------------- */
@media (max-width: 768px) {
    body {
        font-size: 10px;
    }

    table {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        border-collapse: collapse;
    }

    th {
        font-size: 10px;
        /*display: none;*/
    }

    /*
    tr {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 10px;
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #ccc;
    }

    
    td {
        flex: 1 1 150px;
        box-sizing: border-box;
        border: none;
        padding: 8px 0;
        position: relative;
    }
        */

    .add-button,
    .edit-button,
    .delete-button,
    .move-button,
    .merge-button,
    .modern-button,
    .print-button {
        font-size: 10px;
        padding: 5px 10px;
    }

    .event-details {
        flex-direction: column;
        align-items: center;
    }


}

/* ----------------------------------
   GHOST USER MATCH INDICATOREN
---------------------------------- */

/* Container voor lijst met mogelijke matches */
.match-warning-list {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Individuele matchregel */
.match-warning-item {
    font-size: 16px;
    padding: 6px 10px;
    background-color: #fffbe6;
    /* lichte waarschuwingskleur */
    border: 1px solid #ffe58f;
    border-radius: 4px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Naam in de matchregel */
.match-warning-item strong {
    color: #d48806;
    /* opvallende oranje tint */
}

/* Geboortedatum-stijl */
.match-warning-item .match-date {
    color: #888;
    font-size: 14px;
    margin-left: 4px;
}

/* Gelijkenis-percentage stijl */
.match-warning-item .match-similarity {
    color: #666;
    font-size: 15px;
    margin-left: 5px;
}