/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f2f5;
  color: #1e293b;
  min-height: 100vh;
}

/* ===== USER SELECT SCREEN ===== */
.user-select-screen {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a4a5e 0%, #1a6070 100%);
  padding: 1.5rem;
  overflow-y: auto;
}

.user-select-container {
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: auto;
}

.user-select-header {
  margin-bottom: 2rem;
  color: white;
}

.user-select-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 1rem;
}

.user-select-header p {
  font-size: 1.1rem;
  opacity: 0.8;
}

.user-select-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.user-select-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.8rem;
  background: white;
  border-radius: 12px;
  border: 3px solid transparent;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 160px;
}

.user-select-card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  width: 100%;
}

.user-select-card-btn:hover .user-select-avatar {
  transform: scale(1.05);
}

.user-select-card:has(.user-pw-form:not(.hidden)) {
  border-color: #2563eb;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.user-pw-form {
  display: flex;
  gap: 0.3rem;
  width: 100%;
  margin-top: 0.5rem;
}

.user-pw-form input {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 0;
  width: 100%;
}

.user-pw-form input:focus {
  outline: none;
  border-color: #2563eb;
}

.user-pw-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.2rem;
}

.user-select-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.user-select-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 1.2rem;
}

.user-select-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

.user-select-card .badge-admin {
  margin-top: 0.2rem;
}

/* Admin login on start screen */
.admin-login-link {
  margin-top: 2rem;
}

.btn-admin-start {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-admin-start:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: rgba(255,255,255,0.5);
}

.start-login {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.start-login form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.start-login input {
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 160px;
}

.start-login input:focus {
  outline: 2px solid #93c5fd;
}

.start-login .error-text {
  color: #fca5a5;
  margin-top: 0.5rem;
}

/* ===== APP WRAPPER ===== */
#app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: #1a1f36;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand-logo {
  max-width: 160px;
  height: auto;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

.nav-item.active {
  background: #2563eb;
  color: white;
}

.nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-bottom {
  padding: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 0.5rem 1rem 0.4rem;
  margin-top: 0.5rem;
}

#sidebar-user-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
  padding: 0 0.25rem 0.5rem;
}

.sidebar-user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
  transition: all 0.15s;
  width: 100%;
}

.sidebar-user-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

.sidebar-user-btn.active {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
}

.sidebar-current-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-switch-user {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #94a3b8;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-switch-user:hover {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
}

.my-status-label {
  font-size: 0.8rem;
  font-weight: 500;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  min-height: 100vh;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.view-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.view-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hidden {
  display: none !important;
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
}

.login-card {
  max-width: 400px;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  margin: 2rem 0 1rem;
}

.section-divider h2,
.section-divider h3 {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 600;
}

/* ===== BUTTONS ===== */
.btn-primary {
  padding: 0.6rem 1.2rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  padding: 0.6rem 1.2rem;
  background: #e2e8f0;
  color: #475569;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-danger {
  padding: 0.5rem 0.9rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-danger-sm {
  padding: 0.25rem 0.5rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.btn-danger-sm:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

/* Response buttons (user facing) */
.response-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-accept-lg, .btn-decline-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accept-lg {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.btn-accept-lg:hover, .btn-accept-lg.active {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.btn-decline-lg {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.btn-decline-lg:hover, .btn-decline-lg.active {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: #475569;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #1e293b;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.3rem;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
}

.error-text {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

/* ===== ADMIN TABS ===== */
.admin-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  background: white;
  padding: 0.25rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.tab-btn.active {
  background: #2563eb;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== EVENT CARDS ===== */
.event-card-compact {
  background: white;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 0.6rem;
}

.event-card-compact.event-past {
  border-left: 3px solid #16a34a;
  opacity: 0.85;
}

.event-compact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.event-compact-info strong {
  font-size: 0.95rem;
  color: #1e293b;
}

.event-compact-meta {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
}

.event-compact-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.event-cost-compact {
  font-size: 0.75rem;
  color: #1e40af;
  font-weight: 500;
  background: #eff6ff;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.event-compact-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
}

.participants-compact {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.participant-label {
  font-size: 0.75rem;
  margin-right: 0.2rem;
}

/* Compact response buttons */
.response-buttons-compact {
  display: flex;
  gap: 0.3rem;
}

.response-buttons-inline {
  display: flex;
  gap: 0.4rem;
}

.btn-accept-sm, .btn-decline-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accept-sm {
  background: #dcfce7;
  color: #166534;
}

.btn-accept-sm:hover {
  background: #16a34a;
  color: white;
}

.btn-decline-sm {
  background: #fee2e2;
  color: #991b1b;
}

.btn-decline-sm:hover {
  background: #dc2626;
  color: white;
}

.btn-accept-inline, .btn-decline-inline {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-accept-inline {
  background: #16a34a;
  color: white;
}

.btn-accept-inline:hover {
  background: #15803d;
}

.btn-decline-inline {
  background: #dc2626;
  color: white;
}

.btn-decline-inline:hover {
  background: #b91c1c;
}

/* User card actions */
.user-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

/* Event meta (used in admin and attendance cards) */
.event-meta {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 20px;
  font-size: 0.75rem;
  color: #475569;
}

/* ===== BADGES ===== */
.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-weight: 500;
}

.badge-settled { background: #dcfce7; color: #166534; }
.badge-upcoming { background: #dbeafe; color: #1e40af; }
.badge-admin { background: #fef3c7; color: #92400e; font-size: 0.7rem; vertical-align: middle; margin-left: 0.3rem; }

/* ===== ADMIN EVENT CARDS ===== */
.event-history-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #e2e8f0;
}

.event-history-card.upcoming { border-left-color: #2563eb; }
.event-history-card.settled { border-left-color: #16a34a; }
.event-history-card.past { border-left-color: #f59e0b; }

.event-history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.event-history-header h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #1e293b;
}

.event-history-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}

.event-cost-badge {
  font-size: 0.8rem;
  color: #1e40af;
}

.event-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-participants strong {
  font-size: 0.85rem;
  margin-right: 0.3rem;
  color: #475569;
}

.event-participants.declined { opacity: 0.7; }

.event-actions-row {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid #f1f5f9;
}

/* ===== ATTENDANCE ===== */
.attendance-section {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f1f5f9;
}

.attendance-section h5 {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.6rem;
}

.attendance-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}

.attendance-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.attendance-btn:hover { border-color: #16a34a; background: #f0fdf4; }
.attendance-btn.active { border-color: #16a34a; background: #16a34a; color: white; }
.attendance-btn.active .avatar-placeholder { background: rgba(255,255,255,0.3); color: white; }

/* ===== USER CARDS ===== */
.user-card {
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-avatar-edit {
  position: relative;
  cursor: pointer;
}

.user-avatar-edit-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 0.65rem;
  background: #2563eb;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.user-avatar-edit:hover .avatar {
  opacity: 0.7;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.user-name { font-weight: 500; color: #1e293b; }
.user-email { font-size: 0.85rem; color: #64748b; }
.user-password { font-size: 0.8rem; color: #94a3b8; font-family: monospace; }

/* ===== AVATARS ===== */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-xs { width: 22px; height: 22px; font-size: 0.55rem; line-height: 22px; }
.avatar-sm { width: 30px; height: 30px; font-size: 0.7rem; line-height: 30px; }
.avatar-md { width: 38px; height: 38px; font-size: 0.85rem; line-height: 38px; }

.avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-weight: 600;
  border-radius: 50%;
}

/* ===== COST CARDS ===== */
.cost-user-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 1rem;
  overflow: hidden;
}

.cost-user-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.cost-user-card-info {
  display: flex;
  flex-direction: column;
}

.cost-user-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

.cost-user-card-total {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 500;
}

/* PayPal Button */
.btn-paypal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #0070ba;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: auto;
  white-space: nowrap;
}

.btn-paypal:hover {
  background: #005ea6;
}

.paypal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  font-style: italic;
}

.cost-user-card-items {
  padding: 0.5rem 1.25rem;
}

.cost-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-item-date {
  color: #64748b;
  min-width: 85px;
  font-size: 0.8rem;
}

.cost-item-desc {
  flex: 1;
  color: #475569;
}

.cost-item-amount {
  font-weight: 500;
  color: #1e293b;
  margin-left: 1rem;
}

.cost-item-amount.cost-negative {
  color: #dc2626;
}

.cost-item-amount.cost-positive {
  color: #16a34a;
}

.payment-item {
  background: #f0fdf4;
  border-radius: 6px;
  margin: 0.2rem -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.cost-user-card-total.paid-off {
  color: #16a34a;
}

.btn-payment {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
  white-space: nowrap;
  transition: background 0.2s;
}

.btn-payment:hover {
  background: #15803d;
}

/* Attendance card (user area) */
.attendance-card {
  padding: 1rem 1.25rem;
}

.attendance-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.attendance-card-header strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #1e293b;
}

/* ===== EMPTY STATES ===== */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: #94a3b8;
  font-size: 0.95rem;
}

.empty-hint {
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ===== MOBILE SIDEBAR TOGGLE ===== */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: #1a1f36;
  color: white;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .user-select-screen {
    padding: 1rem;
    align-items: center;
  }

  .user-select-logo {
    max-width: 180px;
  }

  .user-select-cards {
    justify-content: center;
    gap: 0.75rem;
  }

  .user-select-card {
    width: 140px;
    padding: 0.8rem 0.6rem;
  }

  .user-select-avatar {
    width: 50px;
    height: 50px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 1rem;
    padding-top: 4rem;
  }

  .sidebar-toggle {
    display: block;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .response-buttons, .response-buttons-compact, .response-buttons-inline {
    flex-direction: column;
  }

  .btn-accept-lg, .btn-decline-lg {
    width: 100%;
    text-align: center;
  }

  .event-compact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .event-compact-right {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .event-history-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .event-history-badges {
    align-items: flex-start;
  }

  .event-card-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Sidebar overlay on mobile */
@media (max-width: 768px) {
  .sidebar.open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
  }
}

/* Scrollbar styling for sidebar user list */
#sidebar-user-grid::-webkit-scrollbar {
  width: 4px;
}

#sidebar-user-grid::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar-user-grid::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}
