:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }

.header { background: #0f172a; color: white; padding: 3rem 0; text-align: center; }
.header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.header p { color: #94a3b8; margin-bottom: 2rem; }

form { display: flex; max-width: 600px; margin: 0 auto; gap: 0.5rem; }
input { flex: 1; padding: 1rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
button { padding: 1rem 2rem; background: var(--primary); color: white; border: none; border-radius: 6px; font-size: 1rem; cursor: pointer; font-weight: bold; transition: background 0.2s; }
button:hover { background: var(--primary-hover); }
button:disabled { background: var(--text-light); cursor: not-allowed; }

.hidden { display: none !important; }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }

/* Loader */
#loader { text-align: center; padding: 4rem 0; color: var(--text-light); }
.spinner { width: 40px; height: 40px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 1rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Score */
.score-card { background: var(--card-bg); padding: 2rem; border-radius: 8px; text-align: center; margin: -2rem auto 2rem; max-width: 300px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); position: relative; z-index: 10; }
.score-circle { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 3rem; font-weight: bold; color: white; border: 8px solid #f1f5f9; transition: background 0.5s; }

/* Grids & Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.card { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1); }
.bg-info { background: #f0fdfa; border: 1px solid #ccfbf1; }
.data-list { list-style: none; font-size: 0.9rem; }
.data-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; }
.data-list li:last-child { border: none; }

/* Lists */
.report-section { margin-top: 2rem; }
.report-section h3 { margin: 1.5rem 0 1rem; display: flex; align-items: center; gap: 0.5rem; }
.badge { background: #e2e8f0; color: var(--text); padding: 0.2rem 0.6rem; border-radius: 99px; font-size: 0.8rem; }
.issues-list .item { background: var(--card-bg); border-left: 4px solid var(--border); padding: 1rem; margin-bottom: 1rem; border-radius: 0 6px 6px 0; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.issues-list .item h4 { margin-bottom: 0.25rem; }
.issues-list .item p { color: var(--text-light); font-size: 0.95rem; }
.issues-list .item .fix { margin-top: 0.5rem; font-size: 0.85rem; color: var(--text); background: var(--bg); padding: 0.5rem; border-radius: 4px; display: inline-block; }

.item.error { border-left-color: var(--danger); }
.item.warning { border-left-color: var(--warning); }
.item.success { border-left-color: var(--success); }