/* Swoffix dashboard theme: light, Indigo / Pink / Teal, Outfit font */
:root { --indigo:#6c63ff; --pink:#e040fb; --teal:#00c9a7; --bg:#f6f5ff; --text:#1c1b3a; --muted:#6b6b8a; --border:rgba(108,99,255,.14); --grad:linear-gradient(90deg,#6c63ff,#e040fb); }
* { font-family: 'Outfit', system-ui, sans-serif; }
body { background: var(--bg); color: var(--text); }

/* layout: sidebar + content */
.shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--border); padding: 22px 14px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; }
.sidebar .brand { font-size: 26px; font-weight: 700; padding: 0 10px 18px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sidebar a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.sidebar a:hover { background: #efeeff; color: var(--indigo); }
.sidebar a.on { background: linear-gradient(90deg,#6c63ff,#8b84ff); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(108,99,255,.30); }
.sidebar .side-foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 0 10px; }
.content { min-width: 0; }
.content > header { background: #fff; box-shadow: none; border-bottom: 1px solid var(--border); padding: 16px 32px; }
.content > header a { display: none; }
header h1 { font-size: 20px; font-weight: 600; }
.content main { max-width: 1100px; margin: 28px auto; padding: 0 32px; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .brand { padding: 0 10px 0 0; } .sidebar .side-foot { display: none; }
  .content main { padding: 0 16px; } .content > header { padding: 14px 16px; }
}

/* cards, forms, tables */
.panel, .card { border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 40px rgba(108,99,255,.10); }
.card { box-shadow: 0 20px 60px rgba(108,99,255,.18); }
h2 { font-weight: 600; }
label { color: var(--text); }
input, select, textarea { border: 1px solid #dcdaf5; border-radius: 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(108,99,255,.15); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td { border-bottom-color: #efeeff; }
.hint { color: var(--muted); }

/* buttons */
button, a.btn, .connect-btn, .broadcast-btn, #connect-btn { background: var(--grad); color: #fff; border: 0; border-radius: 10px; font-weight: 600; box-shadow: 0 6px 16px rgba(108,99,255,.30); }
button:hover, a.btn:hover, #connect-btn:hover { background: var(--grad); filter: brightness(1.06); }
button:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
button.secondary, .type-toggle button { background: #efeeff; color: var(--indigo); box-shadow: none; }
.type-toggle button.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(108,99,255,.30); }
#logoutBtn { background: #fff; color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-row button.remove, .card-block .remove-card { background: #fde8ef; color: #c0123c; box-shadow: none; }
a.navlink, header a { color: var(--indigo); }

/* campaign page */
.bar-i { background: var(--grad); }
.stat-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.stat-box .num { font-weight: 700; }
.stats-grid .stat-box:nth-child(1) .num { color: var(--indigo); } .stats-grid .stat-box:nth-child(2) .num { color: #3b82f6; }
.stats-grid .stat-box:nth-child(3) .num { color: #00a88a; } .stats-grid .stat-box:nth-child(4) .num { color: var(--pink); } .stats-grid .stat-box:nth-child(5) .num { color: #e0245e; }
a.campaignLink { color: var(--indigo); }
.status-approved, .status-completed, .badge-delivered { color: #00846d; }
.status-pending, .status-sending { color: #a86400; }
