/* ============================================================
   COMMUNITY EVENTS MANAGEMENT SYSTEM — MAIN STYLESHEET
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #7c3aed;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #0891b2;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --sidebar-width: 240px;
  --topbar-height: 60px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--gray-50); color: var(--gray-800); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---- TOPBAR ---- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--topbar-height); background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; gap: 1rem; box-shadow: var(--shadow);
}
.topbar-left { display: flex; align-items: center; gap: .75rem; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem; color: var(--gray-800); }
.brand-icon { font-size: 1.4rem; }
.sidebar-toggle { background: none; border: none; cursor: pointer; font-size: 1.2rem; padding: .25rem .5rem; border-radius: 6px; }
.sidebar-toggle:hover { background: var(--gray-100); }

/* ---- LAYOUT ---- */
.layout { display: flex; padding-top: var(--topbar-height); min-height: 100vh; }
.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 1.5rem 2rem; max-width: 100%; overflow-x: hidden; transition: margin .2s; }
.main-content.full-width { margin-left: 0; max-width: 100%; }

/* ---- SIDEBAR ---- */
.sidebar {
  position: fixed; top: var(--topbar-height); left: 0; bottom: 0;
  width: var(--sidebar-width); background: white;
  border-right: 1px solid var(--gray-200);
  overflow-y: auto; z-index: 90;
  transition: transform .2s;
}
.sidebar.collapsed { transform: translateX(-100%); }
.sidebar-nav { padding: .75rem 0 2rem; }
.nav-section { margin-bottom: .25rem; }
.nav-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gray-400);
  padding: .75rem 1.25rem .25rem;
}
.nav-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem 1.25rem; font-size: .875rem; color: var(--gray-600);
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-item.active { background: color-mix(in srgb, var(--primary) 8%, white); color: var(--primary); font-weight: 600; border-right: 3px solid var(--primary); }
.nav-icon { font-size: 1rem; width: 1.25rem; text-align: center; }

/* ---- FOOTER ---- */
.app-footer { margin-left: var(--sidebar-width); padding: 1rem 2rem; background: white; border-top: 1px solid var(--gray-200); }
.footer-inner { display: flex; justify-content: space-between; color: var(--gray-400); font-size: .8rem; }

/* ---- CARDS ---- */
.card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.card-header h3 { font-size: .95rem; font-weight: 600; color: var(--gray-800); }
.card-body { padding: 1.25rem; }
.card-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.p-0 { padding: 0 !important; }
.mb-4 { margin-bottom: 1rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }

/* ---- BUTTONS ---- */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem 1rem; border-radius: 6px; font-size: .875rem; font-weight: 500; cursor: pointer; border: 1px solid transparent; transition: all .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-outline { background: white; color: var(--gray-700); border-color: var(--gray-300); }
.btn-outline:hover { background: var(--gray-50); color: var(--gray-800); }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-group { display: flex; gap: .5rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: .85rem; font-weight: 500; color: var(--gray-700); margin-bottom: .35rem; }
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control { display: block; width: 100%; padding: .45rem .75rem; font-size: .9rem; border: 1px solid var(--gray-300); border-radius: 6px; background: white; color: var(--gray-800); transition: border .15s, box-shadow .15s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.form-control-lg { font-size: 1.05rem; padding: .6rem 1rem; }
.form-control-sm { padding: .25rem .5rem; font-size: .8rem; border: 1px solid var(--gray-300); border-radius: 4px; }
.form-control-color { width: 50px; height: 38px; padding: 2px; border: 1px solid var(--gray-300); border-radius: 6px; cursor: pointer; }
.form-row { display: flex; gap: 1rem; }
.form-row .form-group { flex: 1; }
.form-row .flex-2 { flex: 2; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input { width: 16px; height: 16px; }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 20px; font-size: .75rem; font-weight: 600; line-height: 1; }
.badge-green  { background: #dcfce7; color: #166534; }
.badge-blue   { background: #dbeafe; color: #1e40af; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-teal   { background: #ccfbf1; color: #134e4a; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-count  { background: var(--danger); color: white; border-radius: 50%; width: 18px; height: 18px; font-size: .7rem; display: inline-flex; align-items: center; justify-content: center; margin-left: 2px; }
.text-xs { font-size: .7rem; }

/* ---- ALERTS ---- */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .9rem; border: 1px solid transparent; }
.alert-success, .alert-info-bg  { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---- PAGE HEADER ---- */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.breadcrumb { font-size: .85rem; color: var(--gray-500); margin-bottom: .25rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }

/* ---- STATS GRID ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: flex-start; gap: 1rem; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.stat-card-blue::before  { background: var(--primary); }
.stat-card-green::before { background: var(--success); }
.stat-card-purple::before{ background: var(--secondary); }
.stat-card-orange::before{ background: var(--warning); }
.stat-icon { font-size: 1.75rem; }
.stat-info { flex: 1; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--gray-500); margin-top: .25rem; }
.stat-sub { position: absolute; bottom: .75rem; right: 1rem; font-size: .75rem; color: var(--gray-400); }

/* ---- STATS ROW ---- */
.stats-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mini-stat { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .75rem 1.25rem; text-align: center; min-width: 100px; }
.mini-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
.mini-stat-label { font-size: .75rem; color: var(--gray-500); }

/* ---- GRID ---- */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.grid-3col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.col-span-2 { grid-column: span 2; }
@media (max-width: 768px) { .grid-2col, .grid-3col { grid-template-columns: 1fr; } .col-span-2 { grid-column: 1; } }

/* ---- DATA TABLE ---- */
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th { padding: .6rem 1rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); background: var(--gray-50); border-bottom: 1px solid var(--gray-200); text-align: left; white-space: nowrap; }
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table .row-done td { opacity: .6; text-decoration: line-through; }
.data-table .row-checked-in td { background: #f0fdf4 !important; }
.actions { white-space: nowrap; }
.action-link { color: var(--primary); font-size: .82rem; margin-right: .5rem; background: none; border: none; cursor: pointer; }
.action-link:hover { text-decoration: underline; }

/* ---- EVENTS GRID ---- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.event-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s; }
.event-card:hover { box-shadow: var(--shadow-md); }
.event-card-header { padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.event-card-type { font-size: .8rem; font-weight: 600; color: white; }
.event-card-body { padding: 1rem; }
.event-card-title { font-size: .95rem; font-weight: 600; margin-bottom: .5rem; }
.event-card-title a:hover { text-decoration: underline; }
.event-card-meta { font-size: .8rem; color: var(--gray-500); display: flex; flex-direction: column; gap: .2rem; margin-bottom: .5rem; }
.event-card-desc { font-size: .82rem; color: var(--gray-600); }
.event-card-footer { padding: .75rem 1rem; border-top: 1px solid var(--gray-100); display: flex; gap: .5rem; background: var(--gray-50); }

/* ---- EVENT ROW (dashboard) ---- */
.event-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.event-row:last-child { border-bottom: none; }
.event-date-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0; }
.date-day { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.date-mon { font-size: .65rem; font-weight: 600; text-transform: uppercase; }
.event-info { flex: 1; min-width: 0; }
.event-title { font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.event-title:hover { text-decoration: underline; }
.event-meta { font-size: .78rem; color: var(--gray-500); display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .2rem; }

/* ---- REGISTRATION ROW ---- */
.reg-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.reg-row:last-child { border-bottom: none; }
.reg-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.reg-info { flex: 1; min-width: 0; }
.reg-name { font-weight: 600; font-size: .88rem; }
.reg-event { font-size: .78rem; color: var(--gray-500); }
.reg-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }

/* ---- VOLUNTEER ROW ---- */
.volunteer-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.volunteer-row:last-child { border-bottom: none; }
.volunteer-row > div { flex: 1; }

/* ---- TASK ROW ---- */
.task-row { display: flex; align-items: center; gap: .75rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.task-row:last-child { border-bottom: none; }
.task-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.status-todo { background: var(--gray-400); }
.status-in_progress { background: var(--primary); }
.status-done { background: var(--success); }
.status-blocked { background: var(--danger); }
.task-info { flex: 1; min-width: 0; }
.task-title { font-size: .88rem; font-weight: 500; }
.task-meta { font-size: .76rem; color: var(--gray-400); }

/* ---- EVENT BANNER ---- */
.event-banner { padding: 2rem; border-radius: var(--radius); color: white; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: flex-start; }
.event-banner-title { font-size: 1.75rem; font-weight: 700; margin: .5rem 0; }
.event-banner-meta { display: flex; gap: 1rem; font-size: .88rem; opacity: .9; flex-wrap: wrap; }
.event-type-label { font-size: .82rem; opacity: .85; }

/* ---- TIMELINE ---- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-date { font-size: .8rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; padding: .5rem 0; border-bottom: 2px solid var(--gray-200); margin-bottom: .5rem; }
.timeline-item { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px dashed var(--gray-200); }
.timeline-time { font-size: .8rem; color: var(--gray-500); min-width: 110px; font-family: monospace; }
.timeline-content { flex: 1; }
.timeline-title { font-weight: 600; font-size: .9rem; }

/* ---- DETAIL LIST ---- */
.detail-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem .75rem; font-size: .88rem; }
.detail-list dt { color: var(--gray-500); font-weight: 500; white-space: nowrap; }
.detail-list dd { color: var(--gray-800); }

/* ---- FILTER FORM ---- */
.filter-form { padding: 1rem 1.25rem; }
.filter-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.filter-field { flex: 1; min-width: 130px; }
.filter-field.flex-2 { flex: 2; }
.view-toggle { display: flex; gap: .25rem; }
.view-btn { padding: .35rem .75rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: .82rem; color: var(--gray-600); background: white; }
.view-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1rem; }
.empty-state-sm { padding: 1.5rem; text-align: center; color: var(--gray-400); font-size: .88rem; }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: .25rem; padding: 1rem; }
.page-btn { padding: .4rem .75rem; border: 1px solid var(--gray-300); border-radius: 6px; font-size: .85rem; color: var(--gray-600); background: white; }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:hover:not(.active) { background: var(--gray-100); }

/* ---- DROPDOWNS ---- */
.notif-dropdown, .user-dropdown { position: relative; }
.icon-btn, .user-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 8px; font-size: .88rem; }
.icon-btn:hover, .user-btn:hover { background: var(--gray-100); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; }
.user-name { font-weight: 500; font-size: .88rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + .4rem); background: white; border: 1px solid var(--gray-200); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; z-index: 200; overflow: hidden; }
.dropdown-notif { min-width: 300px; max-height: 400px; overflow-y: auto; }
.dropdown-header { padding: .6rem 1rem; font-size: .8rem; font-weight: 600; color: var(--gray-500); border-bottom: 1px solid var(--gray-100); background: var(--gray-50); }
.dropdown-item { display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; font-size: .88rem; color: var(--gray-700); transition: background .1s; }
.dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); }
.dropdown-divider { border: none; border-top: 1px solid var(--gray-100); }
.dropdown-footer { display: block; padding: .6rem 1rem; font-size: .8rem; color: var(--primary); text-align: center; border-top: 1px solid var(--gray-100); }
.dropdown-empty { padding: 1rem; text-align: center; color: var(--gray-400); font-size: .85rem; }
.notif-item { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); transition: background .1s; }
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: #eff6ff; }
.notif-title { font-weight: 600; font-size: .85rem; }
.notif-msg { font-size: .8rem; color: var(--gray-600); margin-top: .15rem; }
.notif-time { font-size: .75rem; color: var(--gray-400); margin-top: .25rem; }
.text-red { color: var(--danger) !important; }
.text-green { color: var(--success) !important; }
.text-success { color: var(--success); }

/* ---- MODAL ---- */
.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; }
/* Universal dark backdrop — works even without a .modal-overlay child */
.modal::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal-overlay { position: absolute; inset: 0; background: transparent; } /* kept for click-outside JS hooks */
/* Both class names used across pages — ensure box sits above the ::before backdrop */
.modal-box,
.modal-content { position: relative; z-index: 1; background: white; border-radius: var(--radius); width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200); }
.modal-header h3 { font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: var(--gray-500); }
.modal-close:hover { color: var(--gray-800); }
.modal-body { padding: 1.25rem; }
.modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: .5rem; }

/* ---- TABS ---- */
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.25rem; overflow-x: auto; }
.tab { padding: .6rem 1.1rem; font-size: .88rem; font-weight: 500; color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab:hover { color: var(--gray-900); }

/* ---- SETTINGS ---- */
.settings-grid { display: flex; flex-direction: column; gap: 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--gray-100); gap: 1rem; }
.setting-row:last-child { border-bottom: none; }
.setting-info { flex: 1; }
.setting-title { font-weight: 500; font-size: .9rem; }
.setting-desc { font-size: .82rem; color: var(--gray-500); margin-top: .15rem; }
.setting-input { max-width: 100px; }
/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--gray-300); border-radius: 24px; cursor: pointer; transition: .2s; }
.slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .2s; }
.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ---- AUTH ---- */
.auth-body { background: linear-gradient(135deg, #f0f9ff, #e8f2ff); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-container { width: 100%; max-width: 480px; padding: 1rem; }
.auth-card { background: white; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 2rem; }
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo h1 { font-size: 1.5rem; font-weight: 700; margin-top: .5rem; }
.auth-form { margin-bottom: 1.5rem; }
.input-with-toggle { position: relative; }
.toggle-pass { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; font-size: .8rem; color: var(--gray-400); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.demo-accounts { display: flex; flex-direction: column; gap: .5rem; }
.demo-btn { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 8px; padding: .6rem 1rem; cursor: pointer; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: .5rem; transition: background .1s; }
.demo-btn:hover { background: var(--gray-100); }
.demo-email { font-size: .8rem; color: var(--gray-500); font-family: monospace; }

/* ---- SPONSOR / BUDGET ---- */
.sponsor-item { display: flex; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--gray-100); font-size: .88rem; }
.budget-summary { display: flex; justify-content: space-around; }
.budget-item { text-align: center; }
.budget-label { font-size: .8rem; color: var(--gray-500); }
.budget-value { font-size: 1.25rem; font-weight: 700; }
.progress-bar-container { }
.progress-bar-label { font-size: .8rem; color: var(--gray-500); margin-bottom: .25rem; }
.progress-bar { background: var(--gray-200); border-radius: 8px; height: 10px; }
.progress-fill { background: var(--primary); border-radius: 8px; height: 100%; transition: width .3s; }

/* ---- FEEDBACK ---- */
.feedback-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.feedback-card { background: var(--gray-50); border-radius: 8px; padding: 1rem; }
.feedback-stars { font-size: 1rem; margin-bottom: .4rem; }
.feedback-comment { font-size: .85rem; color: var(--gray-700); font-style: italic; }
.feedback-event { margin-top: .5rem; }

/* ---- LOG ROW ---- */
.log-row { display: flex; align-items: center; gap: 1rem; padding: .6rem 1.25rem; border-bottom: 1px solid var(--gray-100); }
.log-row:last-child { border-bottom: none; }
.log-action { font-family: monospace; font-size: .8rem; background: var(--gray-100); padding: .2rem .5rem; border-radius: 4px; flex-shrink: 0; }
.log-who { flex: 1; font-size: .85rem; }
.log-time { flex-shrink: 0; }

/* ---- REGISTER LAYOUT ---- */
.register-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
.register-form-col { }
.register-event-col { position: sticky; top: calc(var(--topbar-height) + 1.5rem); }

/* ---- MISC ---- */
.text-muted { color: var(--gray-500); }
.text-sm { font-size: .82rem; }
.fw-bold { font-weight: 600; }
.text-center { text-align: center; }
.prose { line-height: 1.7; }
.prose p { margin-bottom: .75rem; }
code { background: var(--gray-100); padding: .1rem .35rem; border-radius: 4px; font-family: monospace; font-size: .85em; }
.search-inline { max-width: 220px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .main-content { margin-left: 0; padding: 1rem; }
  .app-footer { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .events-grid { grid-template-columns: 1fr; }
  .register-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
