@import url('https://googleapis.com');

:root {
  --bw-primary: #0F172A;
  --bw-accent: #6DA9D2;
  --bw-accent-dark: #3B82B6;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --safe: #10b981;
  --suspicious: #f59e0b;
  --danger: #ef4444;
  --border: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 12px 16px 24px 16px;
}

header {
  background: linear-gradient(135deg, var(--bw-primary) 0%, #1e293b 70%, var(--bw-accent-dark) 100%);
  color: #ffffff;
  padding: 20px 22px;
  border-radius: 12px;
  margin-bottom: 14px;
  border-bottom: 4px solid var(--bw-accent);
}

header h1 {
  margin: 0 0 6px 0;
  font-size: 1.35rem;
  font-weight: 700;
}

header p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.92;
}

.input-panel, .result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.source-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 500;
}

.source-tabs label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  resize: vertical;
  color: var(--text);
  background: #f8fafc;
}

textarea:focus {
  outline: none;
  border-color: var(--bw-accent-dark);
  background: #ffffff;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

button {
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

#pasteBtn, #clearBtn {
  background: #f1f5f9;
  color: var(--text);
  border: 1px solid var(--border);
}

#checkBtn {
  background: var(--bw-primary);
  color: #ffffff;
  border: none;
  flex: 1;
  min-width: 180px;
}

button:hover:not(:disabled) { opacity: 0.92; }

.privacy-note {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hidden { display: none !important; }

.result-card {
  margin-top: 16px;
  border-left: 6px solid var(--bw-accent);
}

.result-card.safe { border-left-color: var(--safe); }
.result-card.suspicious { border-left-color: var(--suspicious); }
.result-card.high-risk { border-left-color: var(--danger); }

.verdict-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: #e2e8f0;
}

.safe .badge { background: #dcfce7; color: #166534; }
.suspicious .badge { background: #fef3c7; color: #92400e; }
.high-risk .badge { background: #fee2e2; color: #991b1b; }

.score {
  font-weight: 700;
  font-size: 0.95rem;
}

.summary {
  font-weight: 500;
  margin: 0 0 14px 0;
}

.dissection-box, .action-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
}

.dissection-box h3, .action-box h3 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
}

#redFlagsList {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
}

#redFlagsList li { margin-bottom: 6px; 
}

