/* ═══════════════════════════════════════════════════════════
   THE STUDIO — Social Day Club Admin Panel
   Charlotte's creative workspace for managing her club.

   Aesthetic: Warm linen studio. Cards like thick card stock.
   Events as editorial layouts on a mood board.
   Dashboard = bright airy creative studio.
   CRUD = notes section of a beautiful planner.

   Fonts: Fraunces (headings) + Epilogue (body)
   Palette: Paper White, Deep Blue, Electric Yellow, Rose, Charcoal
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&display=swap');

@font-face {
    font-family: 'Epilogue';
    src: url('/fonts/epilogue.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* The Studio Palette */
    --paper: #FDFBF7;
    --paper-warm: #FAF6EF;
    --surface: #FFFFFF;
    --surface-hover: #F7F3ED;
    --surface-raised: #FFFFFF;

    --blue: #0B409C;
    --blue-light: #1a5cd4;
    --blue-soft: #E8EEF8;
    --blue-pale: #F0F4FA;

    --yellow: #FEFC00;
    --yellow-warm: #F5D000;
    --yellow-soft: #FFF9DB;
    --yellow-pale: #FFFCE8;

    --rose: #D4727E;
    --rose-soft: #FAEAEC;
    --rose-pale: #FDF2F3;

    --charcoal: #2D2D2D;
    --text: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #999999;
    --text-light: #BBBBBB;

    --border: #E8E4DD;
    --border-light: #F0ECE5;
    --border-strong: #D5D0C8;

    --success: #2E7D5B;
    --success-soft: #E6F4ED;
    --danger: #C53030;
    --danger-soft: #FEE8E8;
    --warning: #B7791F;
    --warning-soft: #FFF5E0;

    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.03);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.06), 0 8px 32px rgba(0,0,0,0.05);

    --transition: 0.2s ease;
}

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

body {
    font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle linen texture via CSS */
    background-image:
        linear-gradient(90deg, rgba(0,0,0,0.008) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.008) 1px, transparent 1px);
    background-size: 20px 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
    font-optical-sizing: auto;
}

a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-light); }

::selection { background: var(--yellow-soft); color: var(--charcoal); }

/* ═══════════════════════════════════════════
   LAYOUT — Sidebar + Main
   ═══════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════════════
   SIDEBAR — The Planner's Spine
   Clean, warm, with a touch of editorial
   ═══════════════════════════════════════════ */
.sidebar {
    width: 260px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 1px 0 8px rgba(0,0,0,0.03);
}

.sidebar-logo {
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo .wordmark,
.sidebar-logo h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.sidebar-logo .wordmark em,
.sidebar-logo h2 span {
    font-style: italic;
    color: var(--rose);
}

.sidebar-logo .sidebar-subtitle {
    font-family: 'Epilogue', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: block;
}

.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    margin: 1px 0;
}

.sidebar-nav a:hover {
    color: var(--charcoal);
    background: var(--paper-warm);
    border-left-color: var(--border-strong);
}

.sidebar-nav a.active {
    color: var(--blue);
    background: var(--blue-pale);
    border-left-color: var(--blue);
    font-weight: 600;
}

.sidebar-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.5;
}

.sidebar-nav a.active svg {
    opacity: 1;
    color: var(--blue);
}

/* Nav section labels */
.sidebar-nav .nav-section {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-light);
    padding: 1.25rem 1.5rem 0.5rem;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.sidebar-footer .user-name {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.sidebar-footer .user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 0;
    min-height: 100vh;
}

.content-inner {
    padding: 2rem 2.5rem;
    max-width: 1200px;
}

/* ═══════════════════════════════════════════
   PAGE HEADER — Editorial masthead
   ═══════════════════════════════════════════ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--charcoal);
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1;
    letter-spacing: -0.02em;
}

.page-header h1 span {
    font-style: italic;
    color: var(--rose);
}

.page-header-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.35rem;
}

/* ═══════════════════════════════════════════
   STAT CARDS — Big beautiful numbers
   Like a magazine's key figures spread
   ═══════════════════════════════════════════ */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.stat-card .stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-card .stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-card .stat-icon.yellow { background: var(--yellow-soft); color: var(--warning); }
.stat-card .stat-icon.rose { background: var(--rose-soft); color: var(--rose); }
.stat-card .stat-icon.green { background: var(--success-soft); color: var(--success); }

.stat-card .stat-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.stat-card .stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
}

.stat-trend.up { background: var(--success-soft); color: var(--success); }
.stat-trend.down { background: var(--danger-soft); color: var(--danger); }
.stat-trend.neutral { background: var(--paper-warm); color: var(--text-muted); }

/* ═══════════════════════════════════════════
   CARDS — Thick card stock feel
   ═══════════════════════════════════════════ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--paper-warm);
}

.card-header h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
}

.card-body {
    padding: 1.25rem;
}

.card-padded {
    padding: 1.5rem;
}

/* Dashboard two-column grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Three-column for wider content */
.dashboard-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Full-width card span */
.card-full { grid-column: 1 / -1; }

/* ═══════════════════════════════════════════
   TABLES — Clean, readable, warm
   ═══════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.7rem 1.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--paper-warm);
}

td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

td a {
    color: var(--charcoal);
    font-weight: 500;
}

td a:hover {
    color: var(--blue);
}

tr:hover td {
    background: var(--paper-warm);
}

tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════
   BADGES — Soft, rounded, editorial
   ═══════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Event type badges */
.badge-desky_day { background: var(--blue-soft); color: var(--blue); }
.badge-content_day { background: #F3E8FF; color: #7C3AED; }
.badge-club_date { background: var(--rose-soft); color: var(--rose); }
.badge-workshop { background: var(--yellow-soft); color: var(--warning); }

/* Status badges */
.badge-active { background: var(--success-soft); color: var(--success); font-weight: 700; }
.badge-inactive { background: var(--paper-warm); color: var(--text-muted); }
.badge-confirmed { background: var(--success-soft); color: var(--success); }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); }
.badge-pending { background: var(--warning-soft); color: var(--warning); }
.badge-draft { background: var(--paper-warm); color: var(--text-muted); }
.badge-live { background: var(--success-soft); color: var(--success); }
.badge-past { background: var(--paper-warm); color: var(--text-light); }
.badge-sold-out { background: var(--rose-soft); color: var(--rose); }

/* ═══════════════════════════════════════════
   BUTTONS — Confident but warm
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius);
    font-family: 'Epilogue', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.3;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--blue);
    color: white;
}
.btn-primary:hover {
    background: var(--blue-light);
    color: white;
    box-shadow: var(--shadow);
}

.btn-yellow {
    background: var(--yellow);
    color: var(--charcoal);
    font-weight: 700;
}
.btn-yellow:hover {
    background: var(--yellow-warm);
    box-shadow: var(--shadow);
}

.btn-rose {
    background: var(--rose);
    color: white;
}
.btn-rose:hover { background: #c4626e; color: white; }

.btn-success {
    background: var(--success);
    color: white;
}
.btn-success:hover { background: #256b4d; color: white; }

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.72rem; }
.btn-xs { padding: 0.3rem 0.6rem; font-size: 0.65rem; }

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--charcoal);
    border-color: var(--border-strong);
    background: var(--paper-warm);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-icon:hover {
    background: var(--paper-warm);
    color: var(--charcoal);
    border-color: var(--border-strong);
}

/* Button group */
.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════
   FORMS — Planner aesthetic
   ═══════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Epilogue', sans-serif;
    font-size: 0.88rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
    border-radius: 4px;
}

.form-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider { background: var(--blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ═══════════════════════════════════════════
   ALERTS — Soft, warm notifications
   ═══════════════════════════════════════════ */
.alert {
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid #c6e6d8;
}

.alert-error {
    background: var(--danger-soft);
    color: var(--danger);
    border: 1px solid #f5c6c6;
}

.alert-warning {
    background: var(--warning-soft);
    color: var(--warning);
    border: 1px solid #f5e0b0;
}

.alert-info {
    background: var(--blue-soft);
    color: var(--blue);
    border: 1px solid #c6d4ea;
}

/* ═══════════════════════════════════════════
   LOGIN — The Studio Entrance
   ═══════════════════════════════════════════ */
.login-page {
    display: flex;
    min-height: 100vh;
}

.login-brand {
    flex: 1;
    background: var(--blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-brand .brand-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(212,114,126,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.login-brand .brand-text {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.05;
    color: white;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-brand .brand-text em {
    font-style: italic;
    color: var(--yellow);
}

.login-brand .brand-sub {
    font-family: 'Epilogue', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.login-form-side {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--paper);
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.login-card h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.login-card .subtitle {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════
   PAGINATION — Subtle, functional
   ═══════════════════════════════════════════ */
.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    margin-top: 0;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-light);
}

.pagination li a, .pagination li span {
    display: block;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.pagination li.active span {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}

.pagination li a:hover {
    background: var(--paper-warm);
    color: var(--charcoal);
    border-color: var(--border-strong);
}

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--paper-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.empty-state h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.empty-state p {
    font-size: 0.85rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════
   MEMBER PROFILE
   ═══════════════════════════════════════════ */
.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1rem;
}

.profile-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.profile-field {
    margin-bottom: 1rem;
}

.profile-field .field-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.15rem;
}

.profile-field .field-value {
    font-size: 0.88rem;
    color: var(--charcoal);
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════
   EVENT META
   ═══════════════════════════════════════════ */
.event-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.event-meta-item {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   CAPACITY BAR — Elegant progress
   ═══════════════════════════════════════════ */
.capacity-bar {
    width: 60px;
    height: 6px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    overflow: hidden;
}

.capacity-bar-fill {
    height: 100%;
    background: var(--blue);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.capacity-bar-fill.warning { background: var(--warning); }
.capacity-bar-fill.full { background: var(--rose); }

/* ═══════════════════════════════════════════
   STATUS INDICATORS
   ═══════════════════════════════════════════ */
.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.status-dot-live { background: var(--success); box-shadow: 0 0 6px rgba(46,125,91,0.4); }
.status-dot-draft { background: var(--warning); }
.status-dot-past { background: var(--text-light); }

/* ═══════════════════════════════════════════
   QUICK ACTIONS BAR — For dashboard
   ═══════════════════════════════════════════ */
.quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.quick-action:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.quick-action .qa-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.quick-action .qa-icon.blue { background: var(--blue-soft); }
.quick-action .qa-icon.rose { background: var(--rose-soft); }
.quick-action .qa-icon.yellow { background: var(--yellow-soft); }
.quick-action .qa-icon.green { background: var(--success-soft); }

/* ═══════════════════════════════════════════
   ACTIVITY FEED — Timeline style
   ═══════════════════════════════════════════ */
.activity-feed {
    padding: 0;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--paper-warm); }

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
}

.activity-dot.new-member { background: var(--blue); }
.activity-dot.booking { background: var(--success); }
.activity-dot.cancellation { background: var(--rose); }
.activity-dot.payment { background: var(--yellow-warm); }

.activity-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.activity-text strong { color: var(--charcoal); font-weight: 600; }

.activity-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

/* ═══════════════════════════════════════════
   COUNTDOWN / EVENT CARDS — Dashboard
   ═══════════════════════════════════════════ */
.event-card-mini {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: background var(--transition);
}

.event-card-mini:last-child { border-bottom: none; }
.event-card-mini:hover { background: var(--paper-warm); }

.event-date-badge {
    width: 48px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--blue-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-badge .month {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--blue);
}

.event-date-badge .day {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
}

.event-card-mini .event-info {
    flex: 1;
    min-width: 0;
}

.event-card-mini .event-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-mini .event-details {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.event-card-mini .event-capacity {
    text-align: right;
    flex-shrink: 0;
}

.event-card-mini .event-capacity .spots {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
}

.event-card-mini .event-capacity .spots-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   COUNTDOWN TIMER
   ═══════════════════════════════════════════ */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--rose-soft);
    color: var(--rose);
}

.countdown.soon {
    background: var(--warning-soft);
    color: var(--warning);
    animation: pulse-gentle 2s ease-in-out infinite;
}

.countdown.today {
    background: var(--success-soft);
    color: var(--success);
    animation: pulse-gentle 1.5s ease-in-out infinite;
}

@keyframes pulse-gentle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ═══════════════════════════════════════════
   SEARCH BAR
   ═══════════════════════════════════════════ */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 2.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Epilogue', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    transition: all var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

.search-bar .search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════
   FILTER TABS — Event types etc.
   ═══════════════════════════════════════════ */
.filter-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.35rem;
    background: var(--paper-warm);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.filter-tab {
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: none;
    font-family: 'Epilogue', sans-serif;
}

.filter-tab:hover { color: var(--charcoal); }
.filter-tab.active {
    background: var(--surface);
    color: var(--charcoal);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════
   MODAL — For quick actions
   ═══════════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.modal-backdrop.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════
   TABS — For member profile etc.
   ═══════════════════════════════════════════ */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab {
    padding: 0.65rem 1.25rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: 'Epilogue', sans-serif;
}

.tab:hover { color: var(--charcoal); }
.tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   TOOLTIP
   ═══════════════════════════════════════════ */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.65rem;
    background: var(--charcoal);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 50;
}

[data-tooltip]:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   REVENUE CHART PLACEHOLDER
   ═══════════════════════════════════════════ */
.chart-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 1rem;
}

.chart-bar {
    flex: 1;
    background: var(--blue-soft);
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    transition: all var(--transition);
    position: relative;
}

.chart-bar:hover {
    background: var(--blue);
}

.chart-bar .chart-label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   WEATHER WIDGET
   ═══════════════════════════════════════════ */
.weather-widget {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--blue-soft), var(--blue-pale));
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.weather-icon { font-size: 2rem; }

.weather-info .weather-temp {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
}

.weather-info .weather-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.weather-info .weather-location {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   NOTIFICATION DOT — Sidebar
   ═══════════════════════════════════════════ */
.notif-dot {
    width: 8px;
    height: 8px;
    background: var(--rose);
    border-radius: 50%;
    margin-left: auto;
}

.notif-count {
    font-size: 0.6rem;
    font-weight: 700;
    background: var(--rose);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
    margin-left: auto;
    min-width: 18px;
    text-align: center;
}

/* ═══════════════════════════════════════════
   DRAG HANDLE (for future drag-n-drop)
   ═══════════════════════════════════════════ */
.drag-handle {
    cursor: grab;
    color: var(--text-light);
    padding: 0.25rem;
}

.drag-handle:active { cursor: grabbing; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid-3 { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .content-inner { padding: 1.25rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .login-brand { display: none; }
    .login-form-side { width: 100%; }
    .quick-actions { flex-direction: column; }
    .filter-tabs { overflow-x: auto; }
}

/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */
@media print {
    .sidebar, .quick-actions, .btn, .search-bar, .filter-tabs { display: none !important; }
    .main-content { margin-left: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { background: white !important; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeInUp 0.3s ease forwards;
}

/* Stagger children */
.stagger > * {
    opacity: 0;
    animation: fadeInUp 0.3s ease forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0s; }
.stagger > *:nth-child(2) { animation-delay: 0.05s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.15s; }
.stagger > *:nth-child(5) { animation-delay: 0.2s; }
.stagger > *:nth-child(6) { animation-delay: 0.25s; }
