@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4361ee;
    --primary-soft: rgba(67, 97, 238, 0.1);
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --success: #10b981;
    --danger: #ef4444;
    --bg-main: #fcfdfe;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #f1f5f9;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container {
    flex: 1;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.onboarding-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    flex: 1;
}

/* Typography */
h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1rem; color: #020617; }
h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
p { color: var(--text-muted); }

/* Components */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover { border-color: var(--primary-soft); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.interactive-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    box-shadow: var(--shadow);
}

.interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.interactive-card i {
    font-size: 2rem;
    color: var(--primary);
    background: var(--primary-soft);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    transition: 0.3s;
}

.interactive-card:hover i { transform: scale(1.1) rotate(5deg); }

/* Forms */
.form-group { margin-bottom: 1.5rem; }
label { font-size: 0.875rem; font-weight: 600; color: #475569; display: block; margin-bottom: 0.5rem; }
input { 
    width: 100%; 
    padding: 1rem 1.25rem; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    background: #f8fafc; 
    font-family: inherit; 
    font-size: 1rem; 
    transition: 0.3s; 
}
input:focus { border-color: var(--primary); background: white; outline: none; box-shadow: 0 0 0 4px var(--primary-soft); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    border: none;
    background: var(--primary);
    color: white;
}

.btn:hover { background: var(--secondary); transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(67, 97, 238, 0.4); }
.btn-outline { background: white; color: var(--text-main); border: 1px solid var(--border); }
.btn-outline:hover { background: #f8fafc; border-color: var(--primary); color: var(--primary); }

/* Quiz Styles */
.option-container { margin-bottom: 1rem; display: block; }
.option-btn {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: 0.25s;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.option-btn:hover { border-color: var(--primary); background: white; }
input[type="radio"]:checked + .option-btn {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.progress-container { flex: 1; margin: 0 1.5rem; height: 10px; background: #f1f5f9; border-radius: 20px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); width: 0%; border-radius: 20px; transition: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Navigation */
.nav-btn { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.875rem; padding: 0.75rem 1.25rem; border-radius: 12px; transition: 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.nav-btn:hover { background: #f1f5f9; }
.nav-btn.logout { color: var(--danger); }
.nav-btn.logout:hover { background: #fef2f2; }

/* Analysis Styles */
.score-circle {
    width: 160px; height: 160px; border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--percent) * 1%), #f1f5f9 0);
    display: flex; align-items: center; justify-content: center; margin: 2rem auto;
    position: relative;
}
.score-circle::after {
    content: ''; position: absolute; inset: 12px; background: white; border-radius: 50%;
}
.score-inner { position: relative; z-index: 1; text-align: center; }
.score-num { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; }
.score-total { font-size: 1rem; color: var(--text-muted); font-weight: 600; }

.status-badge { padding: 4px 12px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.status-badge.pass { background: #dcfce7; color: #15803d; }
.status-badge.fail { background: #fee2e2; color: #b91c1c; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    .container { padding: 2rem 1rem; }
    .card { padding: 1.5rem; }
    .nav-btn span { display: none; }
}
