/* MAIN CSS - UPDATED */

body {
    background-color: #ededed;
    color: #333333;
    font-family: 'Carlito', 'Roboto', Arial, sans-serif;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* TABLE OVERZICHT */
table.tableoverzicht {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: transparent;
}

/* HEADER */
table.tableoverzicht th {
    text-align: left;
    font-weight: bold;
    padding: 12px;
    background-color: #dcdcdc;
    border-bottom: 2px solid #c8c8c8;
}

/* CELLS */
table.tableoverzicht td {
    padding: 12px;
    vertical-align: top;
    border-bottom: 1px solid #d0d0d0;
}

/* ROW COLORS */
table.tableoverzicht tbody tr:nth-child(even) {
    background-color: #e6e6e6;
}

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

/* HOVER */
table.tableoverzicht tbody tr:hover {
    background-color: #d0d8e8;
}

/* COLUMNS */
.col-flyer { width: 140px; }

.col-datum {
    width: 90px;
    white-space: nowrap;
    font-size: 0.9em;
}

.col-evenement { width: 200px; }

.col-evenement a {
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.col-evenement a:hover {
    color: #3377dd;
    text-decoration: underline;
}

.col-locatie {
    width: 160px;
    white-space: nowrap;
    font-size: 0.95em;
}

.col-tekst {
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.col-acties {
    width: 130px;
    text-align: right;
    font-size: 0.9em;
}

.col-acties a {
    display: block;
    margin-bottom: 6px;
    color: #000;
    text-decoration: none;
}

.col-acties a:hover {
    color: #3377dd;
    text-decoration: underline;
}

.col-flyer img {
    border-radius: 6px;
    display: block;
    max-width: 100%;
    height: auto;
}

/* ALGEMENE LINKS */
a {
    color: #000;
}

a:hover {
    color: #3377dd;
}

/* DETAILPAGINA */
.event-detail {
    padding: 10px;
}

.event-admin-status {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: #d6d6d6;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.event-admin-status-label {
    font-weight: bold;
}

.event-expired {
    background-color: #f4d7d7;
    border: 1px solid #d7a5a5;
    color: #7a1f1f;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    font-weight: bold;
}

.event-card {
    display: flex;
    gap: 16px;
    background-color: #e6e6e6;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.event-poster {
    flex: 0 0 180px;
}

.event-poster img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.event-poster-empty {
    background-color: #d6d6d6;
    border: 1px dashed #b8b8b8;
    border-radius: 6px;
    padding: 20px 12px;
    text-align: center;
    color: #666666;
    font-size: 0.95em;
}

.event-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-row {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #d6d6d6;
    padding-bottom: 6px;
}

.meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    width: 140px;
    font-weight: bold;
    font-size: 0.95em;
    flex-shrink: 0;
}

.meta-value {
    flex: 1;
    font-size: 0.95em;
    min-width: 0;
}

.meta-value.strong {
    font-weight: bold;
    font-size: 1.1em;
}

.meta-value a {
    color: #000;
    text-decoration: none;
    overflow-wrap: break-word;
}

.meta-value a:hover {
    color: #3377dd;
    text-decoration: underline;
}

.event-description {
    background-color: #d6d6d6;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    padding: 14px;
    line-height: 1.6;
    font-size: 0.95em;
}

.event-admin-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-admin {
    border: 1px solid #b8b8b8;
    background-color: #f3f3f3;
    color: #333333;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    font: inherit;
}

.btn-admin:hover {
    border-color: #3377dd;
    color: #3377dd;
}

.btn-delete:hover {
    border-color: #b94a48;
    color: #b94a48;
}

/* OUDE DETAILTABEL FALLBACK */
table.tableplaatsadvertentie {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
}

table.tableplaatsadvertentie td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid #d0d0d0;
}

table.tableplaatsadvertentie tr:nth-child(even) {
    background-color: #e6e6e6;
}

table.tableplaatsadvertentie tr:nth-child(odd) {
    background-color: #d6d6d6;
}

table.tableplaatsadvertentie td:first-child {
    width: 180px;
    font-weight: bold;
}

/* MOBILE */
@media (max-width: 700px) {
    .event-card {
        flex-direction: column;
    }

    .event-poster {
        flex: none;
        width: 100%;
        max-width: 320px;
    }

    .meta-row {
        flex-direction: column;
        gap: 4px;
    }

    .meta-label {
        width: auto;
    }
}
