:root{
  --bg: #0b1020;
  --card: #121931;
  --muted: #aab2cf;
  --text: #eaf0ff;
  --acc: #5b8cff;
  --ok: #2fd48d;
  --warn: #ffb657;
  --bad: #ff5b6e;
  --border: #233055;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: black;
  color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, Helvetica, sans-serif;
}

.container{
  width: min(1100px, 94%);
  margin: 0 auto;
}

.site-header{
  padding: 32px 0 8px;
}
.site-header h1{
  margin: 0;
  font-weight: 750;
  letter-spacing: 0.2px;
}
.subtitle{
  margin-top: 6px;
  color: var(--muted);
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 18px 0;
  backdrop-filter: blur(4px);
}

h2{
  margin: 4px 0 14px;
  font-weight: 700;
}

.form .field{
  margin: 12px 0;
}
label{
  display:block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}
textarea{
  width: 100%;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  background: #0e1530;
  color: var(--text);
  outline: none;
  resize: vertical;
}
input[type="file"]{
  display:block;
  width:100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: #0e1530;
  color: var(--muted);
}
.hint{ color: var(--muted); font-size: 12px; }

.actions{
  margin-top: 10px;
  display:flex;
  justify-content:flex-end;
}
.btn{
  background: var(--acc);
  color: white;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 650;
}
.btn:disabled{ opacity: .6; cursor:not-allowed; }

.divider{
  display:flex; align-items:center; gap:10px;
  color: var(--muted);
  margin: 8px 0;
}
.divider::before, .divider::after{
  content:""; flex:1; height:1px; background: var(--border);
}

.status{
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items:center;
  padding: 12px;
  background:#0e1530;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 12px;
}
.status-title{ margin:0; font-weight:600; }
.status-subtitle{ margin:4px 0 0; color: var(--muted); font-size: 13px; }
.spinner{
  width: 22px; height:22px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--acc);
  animation: spin 1s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.alert{
  margin-top: 12px;
  padding: 12px;
  background: rgba(255,91,110,.08);
  border: 1px solid rgba(255,91,110,.4);
  border-radius: 12px;
  color: #ffd3d8;
}

.hidden{ display:none; }

.score{
  display:flex; gap: 14px; align-items:center;
  margin-bottom: 10px;
}
.score-badge{
  width: 68px; height: 68px; border-radius: 14px;
  display:grid; place-items:center; font-weight:800; font-size: 20px;
}
.score-good{ background: rgba(47,212,141,.15); border:1px solid rgba(47,212,141,.5); color: #aef5d8; }
.score-mid { background: rgba(255,182,87,.15); border:1px solid rgba(255,182,87,.5); color: #ffe1be; }
.score-bad { background: rgba(255,91,110,.15); border:1px solid rgba(255,91,110,.5); color: #ffd3d8; }
.score-na  { background: rgba(170,178,207,.15); border:1px solid rgba(170,178,207,.4); color: #d6dcf4; }
.score-title{ font-weight:700; }
.score-subtitle{ color: var(--muted); }
.score-counts{ display:flex; gap:12px; color:var(--muted); font-size:13px; margin-top:6px; flex-wrap:wrap;}

.grid-two{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.kpi{
  background:#0e1530;
  border:1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.kpi-label{ color: var(--muted); font-size: 12px;}
.kpi-value{ font-weight: 750; font-size: 18px; margin-top: 4px; }

.table-wrap{
  width:100%;
  overflow:auto;
  border:1px solid var(--border);
  border-radius: 12px;
  margin-top: 8px;
}
table{
  width:100%;
  border-collapse: collapse;
  min-width: 640px;
}
th, td{
  text-align:left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
thead th{
  background: #0e1530;
  color: var(--muted);
  font-weight: 700;
}
.tag{
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.tag-ok{ background: rgba(47,212,141,.15); color:#aef5d8; border:1px solid rgba(47,212,141,.5);}
.tag-warn{ background: rgba(255,182,87,.15); color:#ffe1be; border:1px solid rgba(255,182,87,.5);}
.tag-bad{ background: rgba(255,91,110,.15); color:#ffd3d8; border:1px solid rgba(255,91,110,.5);}

.mt{ margin-top: 18px; }

/* Table chips (if you prefer CSS classes instead of inline styles) */
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.chip-supported   { background: rgba(47,212,141,.15); border-color: rgba(47,212,141,.45); color: #aef5d8; }
.chip-contradict  { background: rgba(255,91,110,.15); border-color: rgba(255,91,110,.45); color: #ffd3d8; }
.chip-unsupported { background: rgba(255,182,87,.15); border-color: rgba(255,182,87,.45); color: #ffe1be; }
.chip-verifiable  { background: rgba(91,140,255,.15);  border-color: rgba(91,140,255,.45);  color: #cfe0ff; }
.chip-icon { width: 16px; height: 16px; display: inline-block; }
.chip-icon svg { display: block; width: 16px; height: 16px; }


#error {
  color: #fff;
  background-color: #e53e3e; /* red */
  padding: 12px 16px;
  border-radius: 0.5rem;
  font-weight: 500;
  margin-top: 1rem;
  white-space: pre-line; /* keep newlines for terms list */
}

.site-footer{
  margin: 30px 0 50px;
  color: var(--muted);
  text-align:center;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;            /* spacing between items */
  font-size: 16px;
  margin: 20px 0;
  color: #333;
}

.footer-link {
  color: #0073b1;         /* LinkedIn blue */
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
  color: #005582;
}

/* Responsive */
@media (max-width: 720px){
  .grid-two{ grid-template-columns: 1fr; }
  .score-badge{ width:60px; height:60px; font-size:18px; }
}
