/* BS27 Newsletter Workshop – dark theme, BartSmarts palette */
:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #151e2d;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --blue: #5b4fc9;
  --blue-menu: #6d28d9;
  --blue-light: #8b7ee8;
  --line: #334155;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}
a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-lockup { display: flex; align-items: center; gap: 10px; }
.logo-lockup img { width: 40px; height: 40px; border-radius: 6px; }
.wordmark {
  font-size: 1.45rem;
  font-weight: 700;
  background-image: linear-gradient(90deg, #e11d48, #f97316, #fbbf24, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.02em;
}

.app-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 230px;
  min-width: 230px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--line);
  padding: 1.25rem 0;
  flex-shrink: 0;
}
.sidebar a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: var(--text);
  border-left: 3px solid transparent;
  font-size: 0.95rem;
  white-space: nowrap;
}
.sidebar a:hover, .sidebar a.active {
  background: rgba(91, 79, 201, 0.18);
  border-left-color: var(--blue);
  text-decoration: none;
}
.main-content { flex: 1; padding: 1.75rem 2rem; overflow: auto; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
h1, h2 { margin-top: 0; color: var(--text); }
h1 { font-size: 1.6rem; }
button, .btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0.55rem 1.15rem;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 0.95rem;
}
button:hover, .btn:hover { background: var(--blue-menu); }
input[type=text], input[type=password], input[type=email], textarea, select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 0.8rem;
  background: #0f172a;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
textarea { min-height: 110px; resize: vertical; }
label { font-weight: 600; display: block; margin-bottom: 0.3rem; color: var(--muted); font-size: 0.9rem; }
.error { background: #7f1d1d; color: #fecaca; padding: 0.8rem; border-radius: 5px; margin-bottom: 1rem; }
.success { background: #14532d; color: #bbf7d0; padding: 0.8rem; border-radius: 5px; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.6rem 0.5rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: rgba(0,0,0,0.25); color: var(--muted); font-weight: 600; }

.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); }
.login-box {
  background: var(--bg-card);
  padding: 2.25rem 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--line);
}
.login-box .wordmark { font-size: 1.9rem; display: block; margin: 0.6rem 0 1.6rem; }

.email-preview { max-width: 600px; margin: 1rem auto; background: #fff; color: #222; border: 1px solid #ddd; }
