:root {
    --beige: #f0f5f2;
    --brown: #173c35;
    --green: #23755f;
    --yellow: #e6bd64;
    --blue: #246783;
    --dark: #172f2b;
    --light: #fff;
    --border: #d7e4dc;
    --camp-radius: 16px;
    --camp-shadow: 0 8px 26px rgb(22 57 47 / 7%);
}
body {
    margin: 0;
    background: var(--beige);
    color: var(--dark);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55;
}
h1, h2, h3 { line-height: 1.18; letter-spacing: -.025em; }
h1 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
a { color: #155d50; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #ba710d;
    outline-offset: 3px;
}
header, .admin-topbar {
    background: #fff;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
}
.header-container { flex-wrap: wrap; gap: .75rem; }
.header-container nav { display: flex; flex-wrap: wrap; gap: .65rem; }
.admin-topbar { padding: .8rem clamp(1rem, 3vw, 2rem); gap: .75rem; flex-wrap: wrap; }
.admin-topbar-right { flex-wrap: wrap; }
.admin-topbar-right .logout { background: #e7f2eb; color: #174838; border: 0; border-radius: 8px; }
.admin-wrapper { display: grid; grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); align-items: start; gap: clamp(1rem, 2.5vw, 2rem); padding: 1rem; }
.admin-menu {
    width: auto;
    min-width: 0;
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: .9rem;
    background: #12392e;
    color: #fff;
    border-radius: var(--camp-radius);
    box-shadow: var(--camp-shadow);
}
.admin-menu-header { color: #fff; padding: .35rem .5rem .75rem; font-size: 1.15rem; }
.admin-menu-nav { display: grid; gap: .15rem; }
.admin-menu-nav a {
    display: flex;
    align-items: center;
    color: #e1efe6;
    padding: .49rem .55rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}
.admin-menu-nav a svg { stroke: #9cdbbc; flex-shrink: 0; }
.admin-menu-nav a:hover, .admin-menu-nav a[aria-current="page"] { color: #193d31; background: #d5efdf; }
.admin-menu-nav a:hover svg, .admin-menu-nav a[aria-current="page"] svg { stroke: #226e55; }
.camp-season { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; margin-bottom: .7rem; }
.camp-season label { grid-column: 1 / -1; color: #e1efe6; font-size: .85rem; }
.camp-season select, .camp-season button { font: inherit; border-radius: 8px; padding: .45rem; }
.camp-season button { background: #d5efdf; border: 0; color: #113a2c; cursor: pointer; }
.admin-content { min-width: 0; padding: clamp(.5rem, 1.7vw, 1.25rem); }
.card, .admin-box, .admin-content .slide, .admin-content .stat-card, .camp-panel {
    border: 1px solid var(--border);
    border-radius: var(--camp-radius);
    box-shadow: var(--camp-shadow);
}
.card, .camp-panel { background: #fff; }
.camp-panel { padding: clamp(1rem, 3vw, 2rem); margin-block: 1rem; }
.admin-content :is(.table-wrap, .table-responsive, .calendar-scroll, .calendar-wrapper) { overflow-x: auto; }
.admin-content table { border-color: var(--border); }
.admin-content th { background-color: #e8f2eb; color: #173c35; }
input:not([type=hidden], [type=checkbox], [type=radio]), select, textarea { max-width: 100%; border-radius: 8px; }
.btn, a.btn, button.btn, button[type=submit]:not(.camp-season button) {
    border-radius: 9px;
    cursor: pointer;
}
.camp-inline { display: inline-flex; margin: .15rem; }
.camp-inline button { background: #e6f1eb; color: #174838; border: 1px solid var(--border); padding: .35rem .6rem; }
.camp-badge { display: inline-block; background: #dff3e7; color: #174838; padding: .25rem .65rem; border-radius: 999px; font-size: .86rem; font-weight: 700; }
.camp-live { margin-top: 2rem; }
.camp-alert { border-left: 4px solid #a95026; padding: .7rem 1rem; background: #fbefe4; color: #6d3619; }
@media (max-width: 800px) {
    .admin-wrapper { display: block; padding: .7rem; }
    .admin-menu { position: static; max-height: none; }
    .admin-menu-nav { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
    .admin-content { overflow-x: auto; }
    .admin-content h1 { margin-top: 1rem; }
    .admin-topbar .divider, .admin-topbar .page-title { display: none; }
}
