/* ============================================
   SafeTrace — Shared Stylesheet
   Edit this file to change the look of all
   SafeTrace web pages in one place.
   ============================================ */

/* ── CSS VARIABLES — change colours/fonts here ── */
:root {
  --bg:          #07071a;
  --surface:     #0f0f2a;
  --surface2:    #141430;
  --border:      #1e1e46;
  --red:         #e94560;
  --green:       #3ecf8e;
  --amber:       #f5a623;
  --blue:        #4f8ef7;
  --text:        #eeeeff;
  --muted:       #6666aa;
  --font-head:   'Syne', sans-serif;
  --font-mono:   'DM Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(233,69,96,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,69,96,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(233,69,96,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 24px rgba(233,69,96,0.4);
}
.logo-text { font-size: 22px; font-weight: 800; color: var(--text); }
.logo-text span { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); border: none; color: #fff;
  padding: 14px 24px; border-radius: 12px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 0 24px rgba(233,69,96,0.3); text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(233,69,96,0.4); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--muted); box-shadow: none; }
.btn-secondary:hover { border-color: var(--red); color: var(--text); box-shadow: none; transform: none; }

label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

input, select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 13px 16px; color: var(--text);
  font-family: var(--font-head); font-size: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
select { cursor: pointer; }
select option { background: var(--surface); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.panel-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-title { font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.panel-badge { font-family: var(--font-mono); font-size: 11px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; color: var(--muted); }

.badge { font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: var(--muted); background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-family: var(--font-mono); }
.badge-red { background: rgba(233,69,96,0.1); border-color: rgba(233,69,96,0.3); color: var(--red); }
.badge-green { background: rgba(62,207,142,0.1); border-color: rgba(62,207,142,0.3); color: var(--green); }
.badge-amber { background: rgba(245,166,35,0.1); border-color: rgba(245,166,35,0.3); color: var(--amber); }
.badge-blue { background: rgba(79,142,247,0.1); border-color: rgba(79,142,247,0.3); color: var(--blue); }

.live-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(62,207,142,0.1); border: 1px solid rgba(62,207,142,0.3); border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--green); font-family: var(--font-mono); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.5s infinite; }

.error-msg { background: rgba(233,69,96,0.08); border: 1px solid rgba(233,69,96,0.3); border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--red); margin-bottom: 16px; display: none; }
.error-msg.show { display: block; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 460px; max-width: 90vw; }
.modal h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.modal p { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.modal-btns { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.font-mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
