@import './theme.css';

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-profile {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  min-height: 100px;
  position: relative;
}

.sidebar-profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-sidebar));
}

.profile-inner { position: relative; display: flex; align-items: center; gap: 12px; }

.profile-inner img {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--kick-green);
}

.profile-inner .slug { font-size: 12px; color: var(--text-muted); }

.channel-switcher { margin-top: 10px; }
.channel-switcher-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 4px; }
.channel-switcher select {
  width: 100%; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(0,0,0,0.35); color: var(--text); font-size: 12px;
}
.channel-switcher-role { font-size: 11px; color: var(--kick-green); margin-top: 4px; }
.channel-switcher-role.mod { color: #79c0ff; }
.invite-url-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.invite-url-input { flex: 1; min-width: 200px; font-size: 12px; padding: 8px; border-radius: 6px; border: 1px solid var(--border); background: #0d1117; color: #eee; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: none; }

.nav-section { padding: 12px 0; }

.nav-label {
  padding: 8px 20px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.nav-link {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 14px;
  border-left: 3px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-link.active {
  color: var(--kick-green);
  border-left-color: var(--kick-green);
  background: rgba(83, 252, 24, 0.06);
}

.main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.dashboard-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: -8px 0 8px;
  min-height: 40px;
  position: sticky;
  top: 0;
  z-index: 20;
  padding-bottom: 8px;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
}

.dashboard-brand {
  text-decoration: none;
  line-height: 1;
}

.dashboard-brand:hover {
  opacity: 0.92;
  text-decoration: none;
}

.dashboard-brand .site-brand .site-logo-img {
  height: 28px;
  max-width: 36px;
}

.dashboard-brand .brand-wordmark {
  font-size: 1rem;
}

.page-title { font-size: 1.75rem; margin-bottom: 24px; }

.checklist { list-style: none; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
}
.check-item.done { color: var(--kick-green); }
.check-item.pending { color: var(--text-muted); }

.progress-bar {
  height: 8px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
  margin: 12px 0;
}
.progress-fill {
  height: 100%;
  background: var(--kick-green);
  transition: width 0.3s;
}

.stat-big { font-size: 3rem; font-weight: 800; color: var(--kick-green); line-height: 1; }

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--text-muted);
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 90%;
  max-width: 480px;
}
.modal h3 { margin-bottom: 16px; }

.modal .form-group { margin-bottom: 14px; }
.modal .checkbox-row { padding: 4px 0; }
.modal .form-actions { margin-top: 16px; padding-top: 0; border-top: none; }

.card.form-stack + .card.form-stack { margin-top: 16px; }

.page-desc {
  color: var(--text-muted);
  margin: -12px 0 20px;
  font-size: 14px;
  max-width: 720px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  margin-top: 16px;
}
.chart-bar {
  flex: 1;
  background: var(--kick-green);
  opacity: 0.7;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

@media (max-width: 768px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; }
}

#login-prompt .site-brand .site-logo-img {
  height: 48px;
  max-width: 56px;
}

#login-prompt .site-brand .brand-wordmark {
  font-size: 1.5rem;
}
