/* ================================================================
   AJANDA — Mobile-App Dark Design System
   ================================================================ */

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
}

/* ===== DESIGN TOKENS ===== */
:root {
    --bg:           #0a1628;
    --surface:      #141f33;
    --surface-2:    #1c2b42;
    --surface-3:    #243347;
    --border:       rgba(148, 163, 184, .12);
    --border-focus: rgba(0, 180, 216, .5);
    --accent:       #00b4d8;
    --accent-dk:    #0096c7;
    --success:      #22c55e;
    --danger:       #ef4444;
    --warning:      #f59e0b;
    --text:         #f0f6fc;
    --text-2:       #94a3b8;
    --text-3:       #64748b;
    --radius-lg:    18px;
    --radius:       12px;
    --radius-sm:    8px;
    --navbar-h:     56px;
    --bottomnav-h:  64px;
    --font:         'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow:       0 4px 24px rgba(0,0,0,.35);
    --shadow-sm:    0 2px 8px  rgba(0,0,0,.25);
}

/* ===== BASE ===== */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

/* ===== TOP NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 200;
    gap: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar__back {
    font-size: 26px;
    color: var(--accent);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
    text-decoration: none;
}
.navbar__back:hover { background: rgba(0,180,216,.12); color: var(--accent); }

.navbar__title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar__right {
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* ===== BOTTOM TAB BAR ===== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottomnav-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 200;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-3);
    transition: color .15s;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.bottom-nav__item:hover,
.bottom-nav__item.active { color: var(--accent); }

.bottom-nav__icon {
    font-size: 22px;
    line-height: 1;
    display: block;
}
.bottom-nav__label { font-size: 10px; font-weight: 600; letter-spacing: .3px; }

/* ===== MAIN CONTENT AREA ===== */
.main-content {
    padding-top: calc(var(--navbar-h) + 20px);
    padding-bottom: calc(var(--bottomnav-h) + 20px);
    padding-left: 16px;
    padding-right: 16px;
    max-width: 720px;
    margin: 0 auto;
    min-height: 100vh;
}

.main-content--wide {
    max-width: 960px;
}

.main-content.no-bottom-nav {
    padding-bottom: 28px;
}

/* ===== CARDS ===== */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-body {
    padding: 20px;
}

.card + .card,
.card + .section-title { margin-top: 16px; }

.card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 14px 20px 0;
    margin-bottom: 4px;
}

/* ===== SECTION HEADINGS ===== */
.section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin: 24px 0 8px;
}
.section-title:first-child { margin-top: 0; }

/* ===== FORM GROUPS ===== */
.form-group { margin-bottom: 16px; }

.detail-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detail-item {
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.detail-item__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 6px;
}

.detail-item__value {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.staff-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.staff-card__body {
    padding: 18px;
    display: flex;
    gap: 14px;
}

.staff-card__photo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--surface-2);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-2);
}

.staff-card__photo img,
.staff-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: none;
}

.staff-card__content {
    flex: 1;
    min-width: 0;
}

.staff-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.staff-card__meta {
    margin-top: 4px;
    color: var(--text-2);
    font-size: 14px;
}

.staff-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.staff-photo-preview {
    width: 88px;
    height: 88px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface-2);
    margin-bottom: 10px;
}

.staff-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collapsible-card summary {
    list-style: none;
    cursor: pointer;
}

.collapsible-card summary::-webkit-details-marker {
    display: none;
}

.collapsible-card__trigger {
    width: 100%;
}

.collapsible-card__trigger::after {
    content: "▾";
    margin-left: auto;
    font-size: 16px;
    line-height: 1;
}

.collapsible-card[open] .collapsible-card__trigger::after {
    transform: rotate(180deg);
}

/* ===== STAFF ASSIGNED EVENTS ===== */
.assignment-search-card { margin-bottom: 14px; }
.assignment-search-card input { width: 100%; }
.assignment-date-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.assignment-filter-actions { margin-top: 12px; }
.assignment-years { display: grid; gap: 10px; }
.assignment-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.assignment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
}
.assignment-summary::-webkit-details-marker { display: none; }
.assignment-summary::after {
    content: "▾";
    color: var(--accent);
    transition: transform .15s ease;
}
.assignment-group[open] > .assignment-summary::after { transform: rotate(180deg); }
.assignment-summary--year {
    min-height: 56px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
}
.assignment-months { padding: 0 12px 12px; }
.assignment-month { margin-top: 8px; background: var(--surface-2); }
.assignment-summary--month {
    min-height: 48px;
    padding: 11px 14px;
    font-size: 15px;
    font-weight: 600;
}
.assignment-count {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
}
.assignment-count [data-assignment-total] { color: var(--text-2); white-space: nowrap; }
.assignment-count .badge { white-space: nowrap; }
.assignment-days { padding: 0 10px 10px; }
.assignment-day { margin-top: 10px; }
.assignment-day__title {
    margin: 0 2px 7px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 700;
}
.assignment-event-row {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(10, 22, 40, .48);
}
.assignment-event-row + .assignment-event-row { margin-top: 7px; }
.assignment-event__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.assignment-event__title { min-width: 0; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.assignment-event__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 7px; color: var(--text-2); font-size: 13px; }
.assignment-event__note { margin-top: 7px; color: var(--text-2); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.assignment-empty { margin-top: 12px; }
.staff-delete-menu { margin: 10px 2px 16px; }
.staff-delete-menu summary {
    width: max-content;
    list-style: none;
    cursor: pointer;
    color: var(--text-3);
    font-size: 12px;
}
.staff-delete-menu summary::-webkit-details-marker { display: none; }
.staff-delete-menu summary::after { content: " ▾"; }
.staff-delete-menu[open] summary::after { content: " ▴"; }
.staff-delete-menu form { display: flex; justify-content: flex-end; margin-top: 8px; }

@media (max-width: 480px) {
    .assignment-date-filter { grid-template-columns: 1fr; gap: 0; }
    .assignment-event__top { align-items: flex-start; }
    .assignment-summary { flex-wrap: wrap; }
    .assignment-count { width: 100%; justify-content: flex-start; margin-left: 0; }
}

.collapsible-card__body {
    padding: 0 20px 20px;
}

.form-group label,
label.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
}

input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color .15s, background .15s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    min-height: 48px;
    line-height: 1.4;
}

input[type="file"] {
    width: 100%;
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    font-family: var(--font);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--border-focus);
    background: var(--surface-3);
}

input::placeholder, textarea::placeholder { color: var(--text-3); }

textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Checkbox row */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}
.checkbox-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: unset;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
    border-radius: 4px;
}
.checkbox-row label {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .08s, background .15s;
    text-decoration: none;
    min-height: 48px;
    line-height: 1.2;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); opacity: .88; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; }

.btn-ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(0,180,216,.1); color: var(--accent); }

.btn-full  { width: 100%; }
.btn-sm    { padding: 8px 14px; font-size: 13px; min-height: 36px; border-radius: var(--radius-sm); }
.btn-xs    { padding: 5px 10px; font-size: 12px; min-height: 28px; border-radius: 6px; }

/* Legacy button compat */
button, input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background .15s, transform .08s;
    min-height: 48px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}
button:hover, input[type="submit"]:hover { background: var(--accent-dk); }
button:active, input[type="submit"]:active { transform: scale(.97); }

/* Icon button (navbar etc.) */
.icon-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    min-height: unset;
    line-height: 1;
    border-radius: 8px;
    transition: background .15s;
    display: flex;
    align-items: center;
}
.icon-btn:hover { background: rgba(0,180,216,.12); }

/* Button group */
.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.btn-group .btn { flex: 1; min-width: 0; }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.badge-success { background: rgba(34,197,94,.15);  color: #4ade80; }
.badge-danger  { background: rgba(239,68,68,.15);  color: #f87171; }
.badge-warning { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-info    { background: rgba(0,180,216,.15);  color: var(--accent); }
.badge-neutral { background: rgba(148,163,184,.12); color: var(--text-2); }

/* ===== LIST ITEMS ===== */
.list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: rgba(255,255,255,.025); }

.list-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.list-item__body { flex: 1; min-width: 0; }

.list-item__title {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item__sub {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 2px;
    line-height: 1.4;
}

.list-item__right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Clickable list item */
a.list-item { text-decoration: none; cursor: pointer; }
a.list-item .list-item__title { color: var(--text); }

/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 16px;
    text-align: center;
}
.stat-card__value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}
.stat-card__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.stat-card--success .stat-card__value { color: var(--success); }
.stat-card--danger  .stat-card__value { color: var(--danger); }
.stat-card--warning .stat-card__value { color: var(--warning); }
.stat-card--accent  .stat-card__value { color: var(--accent); }

/* ===== TABLE ===== */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th {
    padding: 10px 14px;
    text-align: left;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}

td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
tbody tr:hover { background: rgba(0,180,216,.05); }

/* ===== ALERT / ERROR ===== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.alert-danger  { background: rgba(239,68,68,.1);  color: #fca5a5; border: 1px solid rgba(239,68,68,.2);  }
.alert-success { background: rgba(34,197,94,.1);  color: #86efac; border: 1px solid rgba(34,197,94,.2);  }
.alert-warning { background: rgba(245,158,11,.1); color: #fde68a; border: 1px solid rgba(245,158,11,.2); }
.alert-info    { background: rgba(0,180,216,.1);  color: #67e8f9; border: 1px solid rgba(0,180,216,.2);  }

/* ===== DIVIDER ===== */
hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* ===== LEGEND (calendar) ===== */
.legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-2);
    margin-bottom: 12px;
    align-items: center;
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

/* ===== NAVIGATION ARROWS (prev/next event) ===== */
.event-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}
.event-nav a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border: 1px solid var(--border);
    transition: background .15s;
}
.event-nav a:hover { background: var(--surface-3); }

/* ===== EVENT DETAIL SECTIONS ===== */
.event-edit-link { margin: 12px 0; }
.event-collapsible {
    margin: 10px 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.event-collapsible > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    padding: 13px 18px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}
.event-collapsible > summary::-webkit-details-marker { display: none; }
.event-collapsible > summary::after { content: "▾"; color: var(--accent); transition: transform .15s ease; }
.event-collapsible[open] > summary::after { transform: rotate(180deg); }
.event-collapsible__body { padding: 0 16px 16px; }
.event-collapsible__body--flush { padding: 0 10px 10px; }
.event-collapsible__body > .card { margin: 0; }
.event-financials { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 4px 2px 12px; }
.event-financials > div { display: flex; flex-direction: column; }
.event-financials strong { font-size: 16px; }
.event-description { padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.event-more-actions { margin: 18px 2px 8px; }
.event-more-actions > summary { width: max-content; list-style: none; cursor: pointer; color: var(--text-3); font-size: 12px; }
.event-more-actions > summary::-webkit-details-marker { display: none; }
.event-more-actions > summary::after { content: " ▾"; }
.event-more-actions[open] > summary::after { content: " ▴"; }
.event-more-actions form { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 36px 28px 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .logo-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}
.auth-logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -.5px;
}
.auth-logo p {
    color: var(--text-2);
    font-size: 14px;
    margin-top: 4px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-2);
}
.auth-links a { color: var(--accent); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* ===== CALENDAR PAGE ===== */
#calendar {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* FullCalendar dark overrides */
.fc {
    font-family: var(--font) !important;
    color: var(--text);
}
.fc .fc-button-primary {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    min-height: 32px !important;
    padding: 4px 12px !important;
    box-shadow: none !important;
}
.fc .fc-button-primary:hover {
    background: var(--surface-3) !important;
    border-color: var(--border-focus) !important;
}
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--accent) !important;
    border-color: var(--accent-dk) !important;
    color: #fff !important;
}
.fc .fc-button-primary:focus { box-shadow: none !important; }

.fc .fc-toolbar-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text) !important;
}
.fc .fc-col-header-cell-cushion {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-decoration: none !important;
}
.fc .fc-daygrid-day-number {
    color: var(--text-2);
    font-size: 13px;
    text-decoration: none !important;
}
.fc .fc-daygrid-day.fc-day-today {
    background: rgba(0,180,216,.08) !important;
}
.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--accent);
    font-weight: 700;
}
.fc-theme-standard td, .fc-theme-standard th { border-color: var(--border) !important; }
.fc-theme-standard .fc-scrollgrid { border-color: var(--border) !important; }
.fc .fc-daygrid-event {
    border-radius: 4px !important;
    font-size: 11px !important;
    padding: 1px 4px !important;
    cursor: pointer;
}
.fc .fc-event-main,
.fc .fc-event-title,
.fc .fc-event-title-container { cursor: pointer; }
.fc .fc-event-title { font-weight: 600; }
.fc .fc-toolbar { padding: 12px 14px !important; }
.fc .fc-daygrid-body { background: var(--surface); }
.fc .fc-scrollgrid-sync-table { background: var(--surface); }

/* ===== HELPERS ===== */
.text-muted   { color: var(--text-2); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-accent  { color: var(--accent); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm      { font-size: 13px; }
.text-xs      { font-size: 12px; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

.d-flex       { display: flex; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-4   { gap: 4px; }
.gap-8   { gap: 8px; }
.gap-12  { gap: 12px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }

.w-full { width: 100%; }

/* ===== RESPONSIVE ===== */
@media (min-width: 680px) {
    .main-content {
        padding-top: calc(var(--navbar-h) + 28px);
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px 24px;
    }
    .list-item__title {
        font-size: 14px;
    }
    .staff-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .staff-card {
        background: var(--surface);
        border: 1px solid rgba(148, 163, 184, .22);
        box-shadow: var(--shadow-sm);
    }
    .staff-card__body {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        padding: 14px;
        gap: 12px;
    }
    .staff-card__photo {
        width: 72px;
        height: 72px;
        border-radius: 18px;
    }
    .staff-card__title {
        font-size: 18px;
    }
    .staff-card__meta {
        font-size: 14px;
    }
    .staff-card__actions {
        margin-top: 10px;
    }
    .staff-card__actions .btn {
        min-height: 34px;
        padding: 6px 12px;
    }
}

/* ===== PRINT ===== */
@media print {
    .navbar, .bottom-nav { display: none !important; }
    .main-content { padding: 0 !important; max-width: 100% !important; }
    body { background: #fff !important; color: #111 !important; }
    .card { background: #fff !important; border: 1px solid #ddd !important; }
    .btn, button { display: none !important; }
    .no-print { display: none !important; }
    table { border-color: #bbb !important; }
    th { background: #f0f0f0 !important; color: #333 !important; }
    td { color: #111 !important; }
    th.col-detay, td.col-detay { display: none !important; }
}
