/* FILE: /public/assets/css/app.css (FULL RECOLOUR + RESTYLE) */

/* =========================
   Design tokens
   ========================= */
:root{
  --bg0: #070A12;
  --bg1: #0A1020;
  --bg2: #0B1430;

  --panel: rgba(255,255,255,0.06);
  --panel-2: rgba(255,255,255,0.04);

  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.14);

  --text: rgba(245,248,255,0.95);
  --muted: rgba(200,210,235,0.70);
  --muted2: rgba(200,210,235,0.55);

  --acc: #7BB5FF;
  --acc-2: #A7D0FF;

  --ok: #3CE6A0;
  --warn: #FFC04D;
  --bad: #FF6F7A;

  --shadow: 0 18px 45px rgba(0,0,0,0.45);
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.30);

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 12px;

  --pad-lg: 18px;
  --pad-md: 14px;
  --pad-sm: 10px;
}

/* =========================
   Base
   ========================= */
*{ box-sizing: border-box; }

html, body { height: 100%; }

body{
  margin: 0;
  color: var(--text);
  font: 15px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Sans";
  background:
    radial-gradient(1000px 600px at 10% -10%, rgba(123,181,255,0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,192,77,0.10), transparent 60%),
    radial-gradient(900px 600px at 50% 110%, rgba(60,230,160,0.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg2));
}

/* Wrap width + breathing space */
.wrap{
  max-width: 1220px;
  margin-inline: auto;
  padding: 28px 18px 90px;
}

/* Headings */
h1{
  font-size: 30px;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}
.sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Links */
a{ color: var(--acc); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Utility */
.hidden{ display:none !important; }
[hidden]{ display:none !important; }

.hr{
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 16px 0;
}

/* =========================
   Layout helpers
   ========================= */
.grid{ display:grid; gap: 14px; }

.resultGrid{
  display:grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.two{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 100000px){
  .resultGrid{ grid-template-columns: 1fr 1fr; }
  .two{ grid-template-columns: 1fr 1fr; }
}

/* =========================
   Cards (glass panels)
   ========================= */
.card{
  background:
    radial-gradient(900px 260px at 15% -10%, rgba(123,181,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--pad-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  margin-bottom:40px;
}

/* Make nested cards lighter so it doesn’t look like “box inside box inside box” */
.card .card{
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}

/* Card titles */
.card h2{
  font-size: 18px;
  margin: 0 0 10px;
}
.card h3{
  font-size: 16px;
  margin: 0 0 8px;
}

/* “Result” block readability */
.result ul{
  margin: 8px 0 12px 18px;
  color: var(--text);
}
.result li{
  margin: 6px 0;
  color: rgba(245,248,255,0.90);
}

/* =========================
   Tabs
   ========================= */
.tabs{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.tabbtn{
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}

.tabbtn:hover{
  border-color: var(--border-2);
  background: rgba(255,255,255,0.06);
}
.tabbtn:active{ transform: translateY(1px); }

.tabbtn[aria-pressed="true"]{
  border-color: rgba(123,181,255,0.55);
  background: rgba(123,181,255,0.12);
  box-shadow: 0 0 0 3px rgba(123,181,255,0.14);
}

/* =========================
   Form controls
   ========================= */
.row{
  display:grid;
  gap: 8px;
  margin: 12px 0;
}

label{
  display:block;
  font-weight: 800;
  color: rgba(245,248,255,0.92);
  margin: 0 0 6px;
}

.inline-help{
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted2);
}

.input,
select,
textarea{
  width:100%;
  background: rgba(10,16,32,0.65);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  padding: 12px 12px;
  font-size: 14.5px;
  outline: none;
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

textarea{ min-height: 160px; resize: vertical; }

.input:focus,
select:focus,
textarea:focus{
  border-color: rgba(123,181,255,0.55);
  box-shadow: 0 0 0 3px rgba(123,181,255,0.14);
  background: rgba(10,16,32,0.78);
}

/* Segment buttons */
.seg{
  display:flex;
  gap: 10px;
  width:100%;
}

.seg button{
  flex:1;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10,16,32,0.55);
  color: rgba(245,248,255,0.90);
  padding: 11px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 800;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.seg button:hover{
  border-color: rgba(255,255,255,0.16);
  background: rgba(10,16,32,0.70);
}
.seg button:active{ transform: translateY(1px); }
.seg button[aria-pressed="true"]{
  border-color: rgba(123,181,255,0.55);
  background: rgba(123,181,255,0.12);
  box-shadow: 0 0 0 3px rgba(123,181,255,0.14);
}

/* Buttons */
.btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
  letter-spacing: 0.2px;
  transition: transform .08s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
}
.btn:active{ transform: translateY(1px); }

.btn.primary{
  background: rgba(123,181,255,0.14);
  border-color: rgba(123,181,255,0.55);
  box-shadow: 0 0 0 3px rgba(123,181,255,0.12);
}
.btn.primary:hover{
  background: rgba(123,181,255,0.18);
}

.btn.small{
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
}

.toolsRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================
   Badges / pills
   ========================= */
.badgeRow{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 10px;
background: rgba(120, 0, 0, 0.6);
    padding: 20px;
    border-radius: 16px;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,16,32,0.45);
  font-weight: 900;
  font-size: 12.5px;
  color: rgba(245,248,255,0.88);
}

.pill.ok{
  border-color: rgba(60,230,160,0.35);
  background: rgba(60,230,160,0.10);
}
.pill.warn{
  border-color: rgba(255,192,77,0.40);
  background: white;
  color:darkred;
}
.pill.bad{
  border-color: rgba(255,111,122,0.40);
  background: rgba(255,111,122,0.10);
}
.pill.info{
  border-color: rgba(123,181,255,0.40);
  background: rgba(123,181,255,0.10);
}

/* Muted text helpers */
.muted{ color: var(--muted); }
.mini{ font-size: 12.5px; color: var(--muted2); }

/* =========================
   Police contact “Matches” cards
   ========================= */
#contactQuickResults label{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: var(--r-lg) !important;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
#contactQuickResults label:hover{
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.16) !important;
}
#contactQuickResults input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--acc);
}

/* =========================
   Tables (full directory)
   ========================= */
table{
  width:100%;
  border-collapse: collapse;
}

thead th{
  position: sticky;
  top: 0;
  background: rgba(10,16,32,0.90);
  backdrop-filter: blur(10px);
  color: rgba(245,248,255,0.90);
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

th, td{
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 10px;
  text-align: left;
  vertical-align: top;
}

tbody tr:hover td{
  background: rgba(255,255,255,0.02);
}

.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: rgba(245,248,255,0.88);
}

/* =========================
   Small polish
   ========================= */
code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: rgba(245,248,255,0.88);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 8px;
}
