@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --bg: #0b0d12;
    --surface: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --accent: #3b82f6;
    --accent-glow: rgba(59,130,246,0.35);
    --text: #e6e8ec;
    --text-dim: #9aa1ac;
    --success: #22c55e;
    --danger: #ef4444;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% -10%, rgba(59,130,246,0.15), transparent 40%),
                radial-gradient(circle at 80% 110%, rgba(168,85,247,0.12), transparent 40%),
                var(--bg);
    color: var(--text);
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}
a { color: inherit; }
.center-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.card {
    width: 100%;
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.steps { display: flex; gap: 8px; margin-bottom: 28px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.steps span.active { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.steps span.done { background: var(--success); }
h1 { font-size: 22px; margin: 0 0 8px; }
p.subtitle { color: var(--text-dim); margin: 0 0 28px; font-size: 14px; }
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn {
    display: inline-block;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: transform .1s;
    text-decoration: none;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: rgba(255,255,255,0.06); box-shadow: none; }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 8px 24px rgba(239,68,68,.3); }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-radius: 10px; margin-bottom: 6px;
    background: rgba(255,255,255,0.03); font-size: 14px;
}
.badge { font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.badge.ok { background: rgba(34,197,94,0.15); color: var(--success); }
.badge.fail { background: rgba(239,68,68,0.15); color: var(--danger); }
.alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-size: 13px; }
.alert.error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }

/* --- App shell --- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 240px; flex-shrink: 0; border-left: 1px solid var(--border); background: rgba(255,255,255,0.02); padding: 20px; }
.sidebar .logo { font-weight: 700; margin-bottom: 32px; display: flex; align-items: center; gap: 8px; }
.sidebar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.nav-link { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 4px; color: var(--text-dim); text-decoration: none; }
.nav-link:hover { background: rgba(255,255,255,0.05); }
.nav-link.active { background: rgba(59,130,246,0.15); color: var(--accent); }
.topbar { height: 64px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.content { flex: 1; padding: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.panel-card { border: 1px solid var(--border); background: rgba(255,255,255,0.02); border-radius: 16px; padding: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 500; font-size: 12px; }
