/* === 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;
}

/* === 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;
}

/* === 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; }
