/* Package.json Doctor — Cyan/Amber theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #06B6D4;
  --primary-dim: rgba(6,182,212,0.12);
  --primary-glow: rgba(6,182,212,0.3);
  --secondary: #22D3EE;
  --accent: #F59E0B;
  --accent-dim: rgba(245,158,11,0.12);
  --bg: #0A0F14;
  --bg-card: #111820;
  --bg-input: #080D12;
  --border: rgba(6,182,212,0.15);
  --border-focus: rgba(6,182,212,0.5);
  --text: #E0EEF5;
  --text-dim: #7BAFC5;
  --text-muted: #3D6478;
  --green: #10B981;
  --green-dim: rgba(16,185,129,0.12);
  --red: #EF4444;
  --red-dim: rgba(239,68,68,0.12);
  --yellow: #F59E0B;
  --yellow-dim: rgba(245,158,11,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.2s ease;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

.header { border-bottom: 1px solid var(--border); background: rgba(17,24,32,0.95); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.header-inner { max-width: 700px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; }
.header-left { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.2rem; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: var(--primary-dim); border-radius: var(--radius-sm); }
.header h1 { font-size: 1.05rem; font-weight: 700; }
.subtitle { font-size: 0.72rem; color: var(--text-dim); }

.main { max-width: 700px; margin: 0 auto; padding: 20px; }

.input-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.panel-label { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.code-editor { width: 100%; min-height: 180px; padding: 14px; font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: var(--secondary); background: var(--bg-input); border: none; outline: none; resize: vertical; }

.input-actions { padding: 10px 14px; display: flex; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 18px; font-family: var(--font); font-size: 0.82rem; font-weight: 600; border: none; border-radius: 6px; cursor: pointer; transition: all var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #0891B2); color: #0A0F14; }
.btn-primary:hover { box-shadow: 0 4px 16px var(--primary-glow); transform: translateY(-1px); }

.score-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; margin-bottom: 12px; }
.score-grade { font-size: 2.5rem; font-weight: 800; }
.score-grade.grade-a { color: var(--green); }
.score-grade.grade-b { color: var(--primary); }
.score-grade.grade-c { color: var(--yellow); }
.score-grade.grade-d { color: var(--red); }
.score-label { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }

.issues-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.issues-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.issue-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 6px; }
.issue-row.pass { background: var(--green-dim); }
.issue-row.warn { background: var(--yellow-dim); }
.issue-row.fail { background: var(--red-dim); }
.issue-icon { font-size: 0.82rem; flex-shrink: 0; margin-top: 1px; }
.issue-text { font-size: 0.78rem; color: var(--text); }
.issue-text .dim { color: var(--text-muted); }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast { padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 4px 24px rgba(0,0,0,0.5); font-size: 0.82rem; animation: toastIn 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
