/* Spy Sales Tracker Theme (Dark Neon) */

:root{
  --bg:#070A12;
  --panel:#0C1020;
  --panel2:#0A0F1E;
  --text:#EAF0FF;
  --muted:#9AA7C0;

  --border:rgba(255,255,255,.10);
  --shadow: 0 16px 50px rgba(0,0,0,.55);

  --red:#ff2a55;      /* Spy-da red */
  --purple:#a855f7;   /* neon purple */
  --blue:#3b82f6;

  --radius:16px;
  --radius2:22px;

  --ring: 0 0 0 3px rgba(168,85,247,.25);
  --ring2: 0 0 0 3px rgba(255,42,85,.20);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(168,85,247,.14), transparent 55%),
    radial-gradient(1200px 800px at 90% 20%, rgba(255,42,85,.10), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(59,130,246,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}

/* Layout */
.container{
  max-width:1180px;
  margin:0 auto;
  padding:22px 16px 40px;
}

/* Top bar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(7,10,18,.82), rgba(7,10,18,.55));
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  max-width:1180px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
}
.brand-badge{
  width:34px;
  height:34px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(255,42,85,.95), rgba(168,85,247,.95));
  box-shadow: 0 10px 30px rgba(168,85,247,.22);
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-title strong{
  font-size:14px;
  letter-spacing:.2px;
}
.brand-title span{
  font-size:12px;
  color:var(--muted);
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.nav a{
  color:var(--text);
  text-decoration:none;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  opacity:.92;
}
.nav a:hover{
  border-color: var(--border);
  background: rgba(255,255,255,.04);
  opacity:1;
}
.pill{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
}

/* Panels / cards */
.panel{
  background: linear-gradient(180deg, rgba(12,16,32,.92), rgba(10,15,30,.92));
  border:1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.card{
  border-radius: var(--radius);
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding:14px;
}

.grid{
  display:grid;
  gap:12px;
}
.grid.cards{
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card .kpi{
  font-size:28px;
  font-weight:800;
  margin-top:8px;
}
.card .label{
  color:var(--muted);
  font-size:12px;
}

/* Headings */
h1,h2,h3{ margin: 10px 0 12px; }
h2{ font-size:22px; }
h3{ font-size:16px; color:rgba(234,240,255,.92); }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  border-color: rgba(168,85,247,.35);
  background: linear-gradient(135deg, rgba(168,85,247,.28), rgba(255,42,85,.18));
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(168,85,247,.34), rgba(255,42,85,.22));
}
.btn-danger{
  border-color: rgba(255,42,85,.45);
  background: rgba(255,42,85,.12);
}
.btn-danger:hover{ background: rgba(255,42,85,.18); }

.btn-sm{ padding:8px 10px; border-radius:12px; font-size:13px; }

/* Forms */
input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{
  box-shadow: var(--ring);
  border-color: rgba(168,85,247,.55);
}
label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }

/* Tables */
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius: var(--radius2);
}
.table th, .table td{
  padding:12px 12px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
}
.table th{
  font-size:12px;
  color:var(--muted);
  background: rgba(255,255,255,.03);
}
.table tr:hover td{
  background: rgba(255,255,255,.02);
}
.table code{
  color: rgba(234,240,255,.88);
}

code{
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  padding:2px 6px;
  border-radius:10px;
}

/* Alerts */
.alert{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  margin:12px 0;
}
.alert.success{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.08); }
.alert.error{ border-color: rgba(255,42,85,.45); background: rgba(255,42,85,.10); }
.alert.info{ border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.10); }

/* Footer */
.footer{
  margin-top:22px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}