/* === Reset & Base === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
    color: #222;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === Container === */
.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    margin: 1rem;
    position: relative;
}

.container--wide {
    max-width: 700px;
}

/* === Typography === */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

/* === Event Header === */
.event-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.event-meta {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.event-meta span {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin: 0.2rem;
    font-size: 0.85rem;
}

/* === Forms === */
label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.3rem;
}

input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
    outline: none;
}

input:focus { border-color: #333; }

input[type="number"] {
    -moz-appearance: textfield;
}

/* Explanatory line under a field: tucked up against the input it belongs to,
   since inputs carry their own 1rem bottom margin. */
.field-hint {
    margin: -0.75rem 0 1rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #888;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin: 0.2rem 0 0 0;
    padding: 0;
}

.checkbox-row label {
    margin-bottom: 0;
    font-weight: 400;
    color: #333;
}

/* === Buttons === */
button {
    width: 100%;
    padding: 0.8rem;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover { background: #444; }
button:disabled { background: #999; cursor: not-allowed; }

.btn-back {
    background: none;
    color: #222;
    border: 1px solid #ddd;
    margin-top: 0.5rem;
}

.btn-back:hover { background: #f5f5f5; }

.btn-danger {
    background: #c00;
    color: #fff;
    margin-top: 0.5rem;
}

.btn-danger:hover { background: #a00; }

/* === Error === */
.error {
    background: #fee;
    color: #c00;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

/* === Notice (informational, non-error) === */
.notice {
    background: #fff8e1;
    color: #8a6100;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 1rem;
    text-align: left;
}

/* === Details Block === */
.details {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.8;
}

.details strong {
    color: #555;
}

/* === Confirmation === */
.confirmation {
    text-align: center;
    display: none;
}

.confirmation .check {
    width: 60px;
    height: 60px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.8rem;
}

.confirmation h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* === Navigation Links === */
.link-modifier {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    text-decoration: none;
}

.link-modifier:hover { color: #444; }

.link-admin {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #ccc;
    text-decoration: none;
    font-size: 1.1rem;
}

.link-admin:hover { color: #888; }

/* === Admin Page === */
.admin-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-logout {
    background: none;
    color: #222;
    border: 1px solid #ddd;
    margin-top: 1.5rem;
}

.btn-logout:hover { background: #f5f5f5; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 2px solid #eee;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
}

td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

tr:last-child td { border-bottom: none; }

.empty {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.total {
    text-align: right;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.total strong { color: #222; }

.reservations-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin: 1.5rem 0 0.5rem;
}

.reservations-subtitle:first-child { margin-top: 0; }

/* === Privacy Page === */
.privacy-section {
    margin-bottom: 1.5rem;
}

.privacy-section h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.privacy-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.privacy-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
}

.privacy-section a { color: #555; }
.privacy-section a:hover { color: #222; }

.link-privacy {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #bbb;
    text-decoration: none;
}

.link-privacy:hover { color: #888; }

/* === Landing page === */
.landing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-header .subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.4rem;
}

.event-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.2rem 1.3rem;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.event-card:hover {
    border-color: #ccc;
    box-shadow: 0 3px 14px rgba(0,0,0,0.07);
    transform: translateY(-1px);
}

.event-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.event-card-meta {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    align-items: center;
}

.event-card-meta .chip {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.chip.seats-ok { background: #e7f6ec; color: #1b7a3d; }
.chip.seats-full { background: #fdeaea; color: #c00; }

.landing-empty {
    text-align: center;
    color: #888;
    padding: 2rem 0;
}

.landing-error {
    text-align: center;
    color: #c00;
    padding: 2rem 0;
}

.event-card--info { cursor: default; }
.event-card--info:hover { border-color: #eee; box-shadow: none; transform: none; }
.chip.seats-info { background: #eef2fb; color: #33528c; }
