/* Snehal Printers — Lead Gen Dashboard
   Palette inspired by snehalprinters.in: deep ink navy + warm press gold,
   on a clean paper-white ground. */
:root {
  --ink: #10233f;
  --ink-2: #16305a;
  --gold: #c9971f;
  --gold-light: #e8c66b;
  --paper: #f6f4ef;
  --card: #ffffff;
  --line: #e7e2d6;
  --text: #1c2430;
  --muted: #6b7280;
  --danger: #b3261e;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Inter, -apple-system, Roboto, sans-serif;
  margin: 0;
  background: var(--paper);
  color: var(--text);
}

.hidden { display: none !important; }
.screen { min-height: 100vh; }

/* ---- Login ---- */
#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(201,151,31,0.18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #0c1a30 100%);
  padding: 24px;
}

.login-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 34px 32px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(8, 15, 30, 0.45);
  border-top: 4px solid var(--gold);
}

.brand-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 16px rgba(201,151,31,0.35);
}

.login-card h1 {
  margin: 0 0 2px;
  font-size: 1.5rem;
  letter-spacing: 0.3px;
  color: var(--ink);
}

.brand-sub {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.login-card .muted { margin-bottom: 18px; }

/* ---- Shared ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 16px;
  box-shadow: 0 1px 2px rgba(16, 35, 63, 0.05);
}

h1 { margin: 0 0 4px; font-size: 1.4rem; color: var(--ink); }
h2 {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-light);
}
.muted { color: var(--muted); font-size: 0.85rem; }
.error { color: var(--danger); font-size: 0.85rem; min-height: 1em; margin-top: 4px; }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,151,31,0.15);
}

button {
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: filter 0.15s, background 0.15s;
}
button:hover { filter: brightness(1.05); }
button.primary { background: var(--ink); color: #fff; width: 100%; margin-top: 12px; }
button.primary:hover { background: var(--ink-2); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
button.ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,151,31,0.06); }
button.small { padding: 6px 12px; font-size: 0.78rem; }

/* ---- Header / nav ---- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--ink);
  color: #fff;
}
header h1 { color: #fff; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
header h1::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
header .muted { color: rgba(255,255,255,0.65); margin-right: 10px; }
header button.ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
header button.ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.tabs { display: flex; gap: 8px; padding: 14px 20px 0; flex-wrap: wrap; }
.tab-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
}
.tab-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-btn:not(.active):hover { border-color: var(--gold); color: var(--gold); }

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 0.85rem; }
th {
  text-align: left;
  padding: 10px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--line);
}
td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
tr:hover td { background: rgba(201,151,31,0.05); }

.add-product { display: flex; gap: 8px; margin: 10px 0 4px; }

.outreach-item {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fffdf8;
}
.outreach-item .subject { font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.outreach-item textarea { width: 100%; min-height: 100px; margin-top: 6px; padding: 10px; }
.outreach-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(201,151,31,0.15);
  color: #8a6b12;
  font-weight: 600;
}

.progress-wrap { margin-top: 14px; }
.progress-track { background: var(--line); border-radius: 6px; height: 8px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--gold), var(--ink)); height: 100%; width: 0%; transition: width 0.4s ease; }

label { display: block; font-size: 0.78rem; margin-top: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
