/* Admin-specific styles, complète style.css */

.admin-login[hidden],
.admin-dashboard[hidden] {
  display: none !important;
}

.admin-login,
.admin-dashboard {
  display: flex;
}

.header-title-sm {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 4px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.login-error {
  text-align: center;
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
}

/* Tabs */
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
}

.tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-active {
  background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(236,72,153,0.15));
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.tab-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tab-panel[hidden] { display: none; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold-light);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Filter chips */
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
}
.filter-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.chip-active {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.4);
  color: var(--gold-light);
}

/* Gage list */
.gage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 32px 16px;
}

.gage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.2s;
}

.gage-card.is-done {
  opacity: 0.55;
}
.gage-card.is-done .gage-text {
  text-decoration: line-through;
}

.gage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.gage-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.gage-date {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.gage-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(248,248,255,0.85);
}

.gage-deadline {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.gage-deadline.is-overdue { color: #f87171; font-weight: 600; }

.gage-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.gage-btn {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.gage-btn:hover, .gage-btn:active {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}
.gage-btn-done {
  border-color: rgba(16,185,129,0.3);
  color: #34d399;
}
.gage-btn-delete {
  border-color: rgba(239,68,68,0.25);
  color: #f87171;
}

/* Wheel editor */
.panel-intro {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 4px;
}

.wheel-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editor-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.editor-row input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s;
}
.editor-row input:focus {
  border-color: var(--gold);
}

.editor-del {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}
.editor-del:hover { background: rgba(239,68,68,0.2); }

.ghost-btn {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.ghost-btn:hover {
  border-color: rgba(245,158,11,0.5);
  color: var(--gold-light);
}

.save-msg {
  text-align: center;
  color: #34d399;
  font-size: 13px;
  font-weight: 600;
}

.logout-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.logout-btn:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
}
