/* IT Student Hub — base styles (Phase 1: installer + error pages) */

:root {
    --itsh-primary: #4f46e5;
    --itsh-primary-dark: #3730a3;
    --itsh-success: #16a34a;
    --itsh-danger: #dc2626;
    --itsh-warning: #d97706;
    --itsh-bg: #f4f5f9;
    --itsh-card: #ffffff;
    --itsh-text: #1f2432;
    --itsh-muted: #6b7280;
    --itsh-border: #e5e7eb;
    --itsh-radius: 14px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --itsh-bg: #0f1117;
        --itsh-card: #171a23;
        --itsh-text: #e7e9ee;
        --itsh-muted: #9aa0ac;
        --itsh-border: #262b38;
    }
}
:root[data-theme="dark"] {
    --itsh-bg: #0f1117;
    --itsh-card: #171a23;
    --itsh-text: #e7e9ee;
    --itsh-muted: #9aa0ac;
    --itsh-border: #262b38;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--itsh-bg);
    color: var(--itsh-text);
    min-height: 100vh;
}

.itsh-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px;
}

.itsh-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.itsh-brand .mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--itsh-primary), var(--itsh-primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.itsh-brand .name { font-weight: 700; font-size: 18px; }
.itsh-brand .tagline { color: var(--itsh-muted); font-size: 13px; }

.itsh-card {
    background: var(--itsh-card);
    border: 1px solid var(--itsh-border);
    border-radius: var(--itsh-radius);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.itsh-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.itsh-step {
    flex: 1;
    min-width: 90px;
    text-align: center;
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--itsh-muted);
    border: 1px solid var(--itsh-border);
}
.itsh-step.active { color: #fff; background: var(--itsh-primary); border-color: var(--itsh-primary); }
.itsh-step.done { color: var(--itsh-success); border-color: var(--itsh-success); }

h1, h2, h3 { margin-top: 0; }

label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--itsh-border);
    background: transparent;
    color: var(--itsh-text);
    font-size: 14px;
}
.hint { font-size: 12px; color: var(--itsh-muted); margin-top: 4px; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: var(--itsh-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: var(--itsh-primary-dark); }
.btn.secondary { background: transparent; color: var(--itsh-text); border: 1px solid var(--itsh-border); }
.btn.block { display: block; width: 100%; text-align: center; }

.itsh-actions { margin-top: 24px; display: flex; justify-content: space-between; gap: 10px; }

.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert.success { background: rgba(22,163,74,.1); color: var(--itsh-success); }
.alert.danger  { background: rgba(220,38,38,.1); color: var(--itsh-danger); }
.alert.warning { background: rgba(217,119,6,.1); color: var(--itsh-warning); }

table.check-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.check-table td { padding: 8px 4px; border-bottom: 1px solid var(--itsh-border); }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok  { background: rgba(22,163,74,.12); color: var(--itsh-success); }
.badge.fail{ background: rgba(220,38,38,.12); color: var(--itsh-danger); }

.error-code { font-size: 64px; font-weight: 800; color: var(--itsh-primary); line-height: 1; }
.error-title { font-size: 20px; font-weight: 700; margin: 10px 0 6px; }
.error-desc { color: var(--itsh-muted); margin-bottom: 20px; }

.footer-note { text-align: center; color: var(--itsh-muted); font-size: 12px; margin-top: 20px; }
