/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

/* ---------- Page ---------- */
body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: #f6f7fb;
    color: #0f172a;
}

/* ---------- Layout ---------- */
.page-center {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.page-content {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

/* ---------- Header ---------- */
.page-title {
    margin: 0;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.event-info {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.event-confirmation {
    text-align: center;
    font-size: 1.25rem;
    color: #64748b;
}

.event-cancellation {
    text-align: center;
    font-size: 1rem;
    color: #64748b;
    margin-top: 20px;
}

.event-cancellation button {
    font-size: 0.75rem;
}

.event-closed {
    text-align: center;
    font-size: 1.5rem;
    color: #64748b;
}

.event-error {
    text-align: center;
    font-size: 1.5rem;
    color: #b91c1c;
    font-weight: 500;
}

/* ---------- Card ---------- */
.form-card {
    margin-top: 8px;
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    width: 100%;
}

/* ---------- Form ---------- */
form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- Inputs ---------- */
input {
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Button ---------- */
button {
    margin-top: 8px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #2563eb;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

/* ---------- Links ---------- */
a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ---------- Tables ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

thead {
    background: #f1f5f9;
}

thead th {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

/* Zebra stripes */
tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* Hover */
tbody tr:hover {
    background: #eef2ff;
}

/* Cells */
th,
td {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    vertical-align: middle;
    text-align: left;
}

/* Last row border cleanup */
tbody tr:last-child {
    border-bottom: none;
}

/* Admin header */
header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

header nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
}

header nav a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip-text {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 6px 8px;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.35rem;
    }

    .form-card {
        padding: 20px;
    }
}
