/* ===== AUTH PAGE ===== */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse 50% 50% at 30% 30%, rgba(124,58,237,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 70% 70%, rgba(6,182,212,0.08) 0%, transparent 60%);
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--bg-glass); backdrop-filter: blur(24px);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 44px 40px; box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.auth-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-bottom: 32px; text-align: center;
}
.auth-logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.auth-logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; }
.auth-tabs {
  display: flex; background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm); padding: 4px; margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 9px; text-align: center;
  font-size: 14px; font-weight: 600; border-radius: 6px;
  color: var(--text-muted); transition: var(--transition); border: none; background: none;
}
.auth-tab.active { background: var(--primary); color: #fff; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.btn-google {
  width: 100%; padding: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--transition);
}
.btn-google:hover { background: rgba(255,255,255,0.1); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn { width: 100%; padding: 13px; }
.auth-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.auth-link a { color: var(--primary-light); font-weight: 600; }
.auth-panel { display: none; }
.auth-panel.active { display: block; }

/* ===== DASHBOARD STYLES ===== */
.dash-layout {
  display: flex; min-height: 100vh; padding-top: 70px;
}
.dash-sidebar {
  width: 260px; flex-shrink: 0;
  background: rgba(8,11,26,0.9); backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed; top: 70px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  transition: transform 0.3s ease;
}
.dash-content {
  flex: 1; margin-left: 260px;
  padding: 32px 28px; max-width: 100%;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); padding: 0 10px; margin-bottom: 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: var(--transition); width: 100%; border: none; background: none; text-align: left;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.sidebar-link.active { background: rgba(124,58,237,0.18); color: var(--primary-light); border: 1px solid rgba(124,58,237,0.25); }
.sidebar-link svg { flex-shrink: 0; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); margin-bottom: 20px;
}
.sidebar-user-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.sidebar-user-name { font-size: 14px; font-weight: 600; }
.sidebar-user-role { font-size: 11px; color: var(--primary-light); }

.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-panel-title { font-size: 22px; font-weight: 700; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }

/* Mobile sidebar toggle */
.dash-mobile-toggle {
  display: none; position: fixed; top: 80px; left: 16px; z-index: 200;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm);
  width: 38px; height: 38px; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .dash-sidebar { transform: translateX(-100%); }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-content { margin-left: 0; padding: 24px 16px; }
  .dash-mobile-toggle { display: flex; }
}

/* ===== ADMIN STYLES ===== */
.admin-tab-bar {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px;
  padding: 6px; background: rgba(255,255,255,0.03); border-radius: var(--radius);
  border: 1px solid var(--border);
}
.admin-tab {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; border: none;
  background: none; color: var(--text-muted); transition: var(--transition);
}
.admin-tab.active { background: var(--primary); color: #fff; }
.admin-tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.search-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input { width: 100%; padding: 10px 14px 10px 38px; }

/* Edit/delete actions */
.row-actions { display: flex; gap: 6px; }
