/* RadioChat v2 — main.css */
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --border: rgba(255,255,255,0.07);
  --accent: #ff3c6e;
  --accent2: #00e5ff;
  --accent3: #a855f7;
  --text: #e8e8f0;
  --muted: #5a5a72;
  --online: #22c55e;
  --red: #ff3c6e;
  --green: #22c55e;
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
}

/* ── HEADER ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; overflow: hidden; flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  background: var(--accent); color: white;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 3px; letter-spacing: 0.1em;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:0.6} }

.nav-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-user { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.nav-btn {
  padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; font-size: 0.8rem; font-weight: 600;
  transition: all 0.15s; background: none;
}
.nav-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.nav-primary { background: linear-gradient(135deg, var(--accent), var(--accent3)); border-color: transparent; color: white; }
.nav-primary:hover { opacity: 0.9; color: white; }
.nav-admin { border-color: var(--accent3); color: var(--accent3); }
.nav-logout:hover { border-color: var(--red); color: var(--red); }

/* ── FORMS ── */
.page-center {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - 60px); padding: 20px;
  position: relative; z-index: 1;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; width: 100%; max-width: 400px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: -40px; left: -40px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,60,110,0.12), transparent 70%);
  pointer-events: none;
}
.card h1 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.03em; }
.card p  { color: var(--muted); font-size: 0.82rem; margin-bottom: 22px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-family: var(--font-mono);
  font-size: 0.62rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group input[type=date],
.form-group textarea,
.form-group select {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px; color: var(--text);
  font-family: var(--font-sans); font-size: 0.9rem; outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.pass-wrap { position: relative; display: flex; align-items: center; }
.pass-wrap input { padding-right: 36px; }
.btn-eye {
  position: absolute; right: 10px; background: none; border: none;
  cursor: pointer; font-size: 14px; opacity: 0.5; padding: 0;
  transition: opacity .15s;
}
.btn-eye:hover { opacity: 1; }

.btn-primary {
  width: 100%; padding: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border: none; border-radius: 8px; color: white;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 700;
  cursor: pointer; transition: opacity 0.15s, transform 0.15s; margin-top: 4px;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-secondary {
  width: 100%; padding: 9px;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--muted);
  font-family: var(--font-sans); font-size: 0.82rem;
  cursor: pointer; margin-top: 8px; transition: all .15s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.alert { padding: 10px 14px; border-radius: 8px; font-size: 0.82rem; margin-bottom: 14px; }
.alert-error   { background: rgba(255,60,110,0.1);  border: 1px solid rgba(255,60,110,0.3);  color: var(--red); }
.alert-success { background: rgba(34,197,94,0.1);   border: 1px solid rgba(34,197,94,0.3);   color: var(--green); }
.alert-info    { background: rgba(0,229,255,0.08);  border: 1px solid rgba(0,229,255,0.3);   color: var(--accent2); }

.form-footer { text-align: center; margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.form-footer a { color: var(--accent2); text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* ── COLOR PICKER ── */
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-opt {
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s, border-color .15s;
}
.color-opt:hover { transform: scale(1.1); }
.color-opt.selected { border-color: white; transform: scale(1.15); }

/* ── TOAST ── */
.toast-container { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 9999; }
.toast {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 16px; font-size: 0.82rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: toast-in 0.25s ease; max-width: 300px;
}
.toast.error { border-left: 3px solid var(--red); }
.toast.success { border-left: 3px solid var(--green); }
@keyframes toast-in { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* ── CREDITS ── */
.sidebar-credit {
  padding: 14px 12px 16px; text-align: center;
}
.sidebar-credit .credit-label {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 400;
  color: var(--muted); display: block; line-height: 1.7;
}
.sidebar-credit .credit-name {
  font-size: 1rem; font-weight: 800; color: var(--accent);
  letter-spacing: -0.02em; display: block;
}
