/* ============================================================
   admin.css – UWS 2026 Admin Panel
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --blue-dark:   #05367B;
    --blue-mid:    #1A4EB5;
    --blue-bright: #305CDE;
    --sidebar-w:   230px;
    --topbar-h:    56px;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --shadow-card: 0 2px 8px rgba(0,0,0,0.07), 0 6px 20px rgba(0,0,0,0.04);
}

html, body {
    margin: 0; padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #111827;
    background: #F0F2F5;
    height: 100%;
}

a { text-decoration: none; color: inherit; }

/* ── Layout ──────────────────────────────────────────────────── */
.admin-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--blue-dark);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: transform 0.25s ease;
}

.admin-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-content {
    flex: 1;
    padding: 24px;
    max-width: 1200px;
}

/* ── Sidebar logo ────────────────────────────────────────────── */
.admin-sidebar-logo {
    padding: 20px 18px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    height: 60px;
}

.admin-sidebar-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.95;
}

.admin-sidebar-badge {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Sidebar nav ─────────────────────────────────────────────── */
.admin-nav {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-item svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    stroke-width: 1.8;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: #FFFFFF;
}

.admin-nav-item.is-active {
    background: rgba(255,255,255,0.15);
    color: #FFFFFF;
    font-weight: 700;
}

.admin-nav-item.is-active svg {
    stroke-width: 2.2;
}

/* ── Sidebar footer links ────────────────────────────────────── */
.admin-sidebar-footer {
    padding: 12px 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.15s, background 0.15s;
}

.admin-sidebar-link svg {
    width: 16px; height: 16px; flex-shrink: 0;
}

.admin-sidebar-link:hover { color: #FFFFFF; background: rgba(255,255,255,0.08); }
.admin-sidebar-link--logout:hover { color: #FCA5A5; }

/* ── Top bar ─────────────────────────────────────────────────── */
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-h);
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.admin-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #374151;
}

.admin-menu-toggle svg { width: 22px; height: 22px; }

.admin-page-title {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.admin-topbar-user {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 999px;
    margin-right: 8px;
}

.admin-topbar-event {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-dark);
    background: #EEF3FF;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* ── Stat cards ──────────────────────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.stat-icon {
    width: 44px; height: 44px;
    min-width: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    overflow: hidden;
}
.stat-icon svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px;
    max-height: 22px;
    flex-shrink: 0;
}

.stat-icon--blue   { background: #EEF3FF; }
.stat-icon--green  { background: #ECFDF5; }
.stat-icon--amber  { background: #FFFBEB; }
.stat-icon--purple { background: #F5F3FF; }
.stat-icon--red    { background: #FEF2F2; }

.stat-body {}
.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    letter-spacing: 0.02em;
}

/* ── Section headers ─────────────────────────────────────────── */
.admin-section {
    margin-bottom: 28px;
}

.admin-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

/* ── Card wrapper ────────────────────────────────────────────── */
.admin-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.admin-card-body {
    padding: 20px;
}

/* ── Table ───────────────────────────────────────────────────── */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th {
    text-align: left;
    padding: 11px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    background: #F9FAFB;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #F3F4F6;
    color: #374151;
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #FAFBFF; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.badge--blue      { background: #EEF3FF; color: var(--blue-dark); }
.badge--green     { background: #ECFDF5; color: #065F46; }
.badge--amber     { background: #FFFBEB; color: #92400E; }
.badge--gray      { background: #F3F4F6; color: #4B5563; }
.badge--red       { background: #FEF2F2; color: #991B1B; }
.badge--purple    { background: #F5F3FF; color: #5B21B6; }

/* ── Toolbar (search + filters) ──────────────────────────────── */
.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #F3F4F6;
    flex-wrap: wrap;
}

.admin-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 8px 12px;
    transition: border-color 0.15s;
}

.admin-search:focus-within {
    border-color: var(--blue-bright);
    background: #FFFFFF;
}

.admin-search svg { width: 16px; height: 16px; color: #9CA3AF; flex-shrink: 0; }

.admin-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #111827;
    width: 100%;
}

.admin-search input::placeholder { color: #9CA3AF; }

.admin-filter-select {
    padding: 8px 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: #F9FAFB;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

.admin-filter-select:focus { border-color: var(--blue-bright); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn--primary { background: var(--blue-bright); color: #FFFFFF; box-shadow: 0 2px 8px rgba(48,92,222,0.28); }
.btn--primary:hover { opacity: 0.9; }
.btn--secondary { background: #F3F4F6; color: #374151; }
.btn--secondary:hover { background: #E9EBEE; }
.btn--green { background: #10B981; color: #FFFFFF; }
.btn--green:hover { opacity: 0.9; }
.btn--red { background: #EF4444; color: #FFFFFF; }
.btn--red:hover { opacity: 0.9; }
.btn--ghost { background: transparent; color: var(--blue-bright); padding: 6px 10px; }
.btn--ghost:hover { background: #EEF3FF; }
.btn--sm { padding: 5px 10px; font-size: 12px; }

/* ── Form elements ───────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid--1 { grid-template-columns: 1fr; }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.span-2 { grid-column: span 2; }
.form-field.span-full { grid-column: 1 / -1; }

.form-field label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 9px 12px;
    border: 1.5px solid #D1D5DB;
    border-radius: var(--radius-md);
    font-size: 14px;
    color: #111827;
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(48,92,222,0.12);
}

.form-field textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.form-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px;
}

.form-divider {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 4px 0;
}

/* ── Alerts ──────────────────────────────────────────────────── */
.admin-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-alert svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-alert--success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.admin-alert--error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.admin-alert--info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }

/* ── Empty state ─────────────────────────────────────────────── */
.admin-empty {
    text-align: center;
    padding: 48px 24px;
    color: #9CA3AF;
}

.admin-empty-icon { font-size: 40px; margin-bottom: 10px; }
.admin-empty-title { font-size: 16px; font-weight: 700; color: #374151; margin-bottom: 6px; }
.admin-empty-desc { font-size: 13px; line-height: 1.6; }

/* ── Notification type cards ─────────────────────────────────── */
.notif-type-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

.notif-type-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.notif-type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notif-type-option label .type-emoji { font-size: 20px; }

.notif-type-option input:checked + label { border-color: var(--blue-bright); background: #EEF3FF; color: var(--blue-dark); }

/* ── Dinner summary bars ─────────────────────────────────────── */
.dinner-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 20px;
}

.dinner-bar-item {}
.dinner-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.dinner-bar-label span { color: #6B7280; font-weight: 600; }

.dinner-bar-track {
    height: 10px;
    background: #F3F4F6;
    border-radius: 999px;
    overflow: hidden;
}

.dinner-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-dark), var(--blue-bright));
    transition: width 0.6s ease;
}

/* ── Notification history ────────────────────────────────────── */
.notif-history-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #F3F4F6;
}

.notif-history-item:last-child { border-bottom: none; }

.notif-history-dot {
    width: 10px; height: 10px;
    border-radius: 999px;
    margin-top: 5px;
    flex-shrink: 0;
}

.notif-history-dot--info    { background: #3B82F6; }
.notif-history-dot--warning { background: #F59E0B; }
.notif-history-dot--success { background: #10B981; }
.notif-history-dot--urgent  { background: #EF4444; }

.notif-history-body { flex: 1; min-width: 0; }
.notif-history-title { font-size: 14px; font-weight: 700; color: #111827; }
.notif-history-preview { font-size: 12px; color: #6B7280; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-history-meta { font-size: 11px; color: #9CA3AF; margin-top: 3px; }

/* ── Mobile responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }

    .admin-main { margin-left: 0; }
    .admin-menu-toggle { display: flex; }
    .admin-content { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid--3 { grid-template-columns: 1fr 1fr; }
    .form-field.span-2 { grid-column: span 1; }
    .notif-type-row { grid-template-columns: 1fr 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }

    .admin-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 199;
    }

    .admin-overlay.is-visible { display: block; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
    .form-grid--3 { grid-template-columns: 1fr; }
}

/* ── Welcome hero ────────────────────────────────────────── */
.dash-hero {
    background: linear-gradient(135deg, #05367B 0%, #1A4EB5 55%, #305CDE 100%);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 4px 24px rgba(5,54,123,0.25);
    position: relative;
    overflow: hidden;
}

.dash-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.dash-hero-left { flex: 1; min-width: 0; }

.dash-hero-greeting {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.dash-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.dash-hero-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.dash-hero-countdown {
    text-align: center;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 10px 18px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.dash-hero-countdown-num {
    font-size: 28px;
    font-weight: 900;
    color: #FFFFFF;
    line-height: 1;
    letter-spacing: -0.03em;
}

.dash-hero-countdown-label {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* ── Enhanced stat cards ─────────────────────────────────── */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-accent--blue   { background: linear-gradient(90deg, #05367B, #305CDE); }
.stat-accent--purple { background: linear-gradient(90deg, #5B21B6, #8B5CF6); }
.stat-accent--amber  { background: linear-gradient(90deg, #92400E, #F59E0B); }
.stat-accent--green  { background: linear-gradient(90deg, #065F46, #10B981); }

.stat-sub {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 500;
    margin-top: 3px;
}

/* ── Insights grid ───────────────────────────────────────── */
.dash-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .dash-insights { grid-template-columns: 1fr; }
}

/* ── Donut chart ─────────────────────────────────────────── */
.donut-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.donut-svg {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px;
    max-height: 120px;
    flex-shrink: 0;
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.donut-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.donut-legend-label {
    flex: 1;
    color: #374151;
    font-weight: 600;
}

.donut-legend-val {
    font-weight: 800;
    color: #111827;
    font-size: 14px;
}

/* ── Quick actions ───────────────────────────────────────── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-action-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1.5px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-color: #E5E7EB;
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.quick-action-icon svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px;
    max-height: 22px;
    stroke-width: 2;
    flex-shrink: 0;
}

.quick-action-label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
}

/* ── Restaurant / Room list (dinner & agenda) ────────────── */
.restaurant-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.restaurant-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
}

.restaurant-drag-handle { color: #D1D5DB; cursor: grab; flex-shrink: 0; }
.restaurant-name { flex: 1; font-size: 14px; font-weight: 600; color: #111827; }

/* ── Agenda day header ────────────────────────────────────── */
.agenda-day-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 8px;
}

.agenda-day-label {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.agenda-day-date {
    font-size: 13px;
    color: #6B7280;
}

.agenda-day-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: #9CA3AF;
    background: #F3F4F6;
    padding: 2px 8px;
    border-radius: 99px;
}

/* ── Utility ─────────────────────────────────────────────── */
.is-hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════
   AGENDA BUILDER
════════════════════════════════════════════════════════════ */

/* Session cards container */
.agenda-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual session card */
.agenda-card {
    display: flex;
    gap: 0;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.agenda-card:hover {
    border-color: #C7D2FE;
    box-shadow: 0 4px 16px rgba(48,92,222,0.08);
}

/* Time sidebar */
.agenda-card-time {
    width: 90px;
    flex-shrink: 0;
    background: #F8FAFF;
    border-right: 1.5px solid #E5E7EB;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.agenda-time-start {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.agenda-time-ampm {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 2px;
}
.agenda-time-end {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 6px;
    white-space: nowrap;
}

/* Card body */
.agenda-card-body {
    flex: 1;
    padding: 14px 18px;
    min-width: 0;
}
.agenda-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.agenda-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
}
.agenda-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.agenda-card-desc {
    font-size: 13px;
    color: #6B7280;
    margin: 6px 0 0;
    line-height: 1.5;
}

/* People list (moderator + speakers) */
.agenda-card-people {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #E5E7EB;
}
.agenda-person {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 5px 10px;
}
.agenda-person--mod {
    background: #EFF6FF;
    border-color: #BFDBFE;
}
.agenda-person-role {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9CA3AF;
}
.agenda-person--mod .agenda-person-role { color: var(--blue-bright); }
.agenda-person-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}
.agenda-person-meta {
    font-size: 12px;
    color: #6B7280;
}
.agenda-person-role::after { content: "·"; margin-left: 5px; }

/* ── Modal sections ────────────────────────────────────────── */
.agenda-modal-section {
    padding: 16px 0;
    border-top: 1px solid #F3F4F6;
}
.agenda-modal-section:first-child { border-top: none; padding-top: 0; }

/* ── 12-hour time picker ───────────────────────────────────── */
.time-picker-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.time-sel {
    padding: 9px 6px;
    border: 1.5px solid #D1D5DB;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: #FFFFFF;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
}
.time-sel:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(48,92,222,0.12); }
#sStartH, #sEndH { width: 52px; }
#sStartM, #sEndM { width: 52px; }
#sStartA, #sEndA { width: 58px; }
.time-colon { font-size: 16px; font-weight: 800; color: #374151; }

/* ── Toggle switch ─────────────────────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: 99px;
    transition: background 0.2s;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #FFF;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--blue-bright); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Speaker rows ─────────────────────────────────────────── */
.speaker-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 8px;
}
.speaker-row-fields {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.speaker-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 4px;
    flex-shrink: 0;
    margin-top: 22px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.speaker-remove:hover { color: #EF4444; background: #FEF2F2; }

/* ── Speaker name autocomplete (registered-attendee search) ─────── */
.speaker-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    margin-top: 4px;
    background: #FFFFFF;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
    max-height: 220px;
    overflow-y: auto;
}
.speaker-search-item {
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #F3F4F6;
}
.speaker-search-item:last-child { border-bottom: none; }
.speaker-search-item:hover { background: #F9FAFB; }
.speaker-search-item-name { font-size: 13px; font-weight: 700; color: #111827; }
.speaker-search-item-meta { font-size: 11.5px; color: #9CA3AF; margin-top: 1px; }

@media (max-width: 600px) {
    .agenda-card-time { width: 70px; }
    .agenda-time-start { font-size: 16px; }
    .speaker-row-fields { grid-template-columns: 1fr; }
    .agenda-card-actions .btn span { display: none; }
}

/* ── Attendee avatar initials ────────────────────────────── */
.attendee-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
    flex-shrink: 0;
    letter-spacing: 0;
}

/* ── Event details grid ──────────────────────────────────── */
.event-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.event-detail-item {}

.event-detail-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    margin-bottom: 3px;
}

.event-detail-val {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

/* ── Bottom row ──────────────────────────────────────────── */
.dash-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

@media (max-width: 768px) {
    .dash-bottom-row { grid-template-columns: 1fr; }
    .dash-hero { padding: 18px 20px; }
    .dash-hero-greeting { font-size: 18px; }
    .quick-actions { grid-template-columns: repeat(2,1fr); gap: 10px; }
}

/* ============================================================
   Sidebar group labels (added with the 2026 feature expansion)
   ============================================================ */
.admin-nav-group {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
    padding: 0 16px;
    margin: 18px 0 6px;
    user-select: none;
}
.admin-nav-group:first-child { margin-top: 8px; }

/* The sidebar now holds 17 items — let it scroll on short screens
   without the logo or footer sliding away. */
.admin-sidebar { display: flex; flex-direction: column; }
.admin-nav {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.admin-nav::-webkit-scrollbar { width: 5px; }
.admin-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}
