* { box-sizing: border-box; }
body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: #f6f6f6;
    color: #1a1a1a;
    line-height: 1.55;
}
header.admin-nav {
    background: #141414;
    color: #fff;
    padding: 0.85rem max(0.75rem, calc((100% - 1100px) / 2 + 0.75rem));
    border-bottom: 2px solid #b59449;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}
header.admin-nav strong {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.95rem;
}
header.admin-nav a {
    color: #e5e5e5;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}
header.admin-nav a:hover, header.admin-nav a.active {
    background: rgba(181, 148, 73, 0.2);
    color: #fff;
}
header.admin-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
header.admin-nav .nav-menu {
    position: relative;
}
header.admin-nav .nav-menu > summary {
    list-style: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    user-select: none;
}
header.admin-nav .nav-menu > summary::-webkit-details-marker {
    display: none;
}
header.admin-nav .nav-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 210px;
    background: #141414;
    border: 1px solid #b59449;
    border-radius: 6px;
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    z-index: 200;
}
header.admin-nav .nav-dropdown a {
    display: block;
    white-space: nowrap;
}
main {
    max-width: 1100px;
    margin: 1.25rem auto;
    padding: 0 0.75rem 2rem;
}
.card {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    padding: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 720px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}
label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
input[type="text"], input[type="date"], input[type="time"], input[type="number"],
input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 1rem;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    vertical-align: middle;
}
.btn-primary { background: #1e3a5f; color: #fff; }
.btn-danger  { background: #b91c1c; color: #fff; }
.btn-secondary { background: #e5e7eb; color: #111827; }
.badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
    border-radius: 4px;
    background: #e5e7eb;
}
.nav-dropdown .nav-user {
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.25rem;
    white-space: nowrap;
}
.badge-intern { background: #fef3c7; color: #92400e; }
.badge-pin    { background: #dbeafe; color: #1e40af; }
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.alert-ok  { background: #ecfdf5; border: 1px solid #10b981; color: #065f46; }
.alert-err { background: #fef2f2; border: 1px solid #ef4444; color: #991b1b; }

/* Mobile-First Event/Registration Cards */
.item-list { display: grid; gap: 0.75rem; }
.item-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.item-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
    align-items: center;
}
@media (min-width: 720px) {
    .item-card {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    .item-card .item-actions {
        margin-top: 0;
        flex-shrink: 0;
    }
}
