/* ====== LIGHT MODE (default) ====== */
:root {
    --bg-primary: #F8F9FC;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F2F8;
    --text-primary: #1A1D29;
    --text-secondary: #6B7280;
    --text-heading: #0F1119;
    --border: #E2E5ED;

    /* Gaming Accents */
    --accent-primary: #00B4D8;       /* Cyan */
    --accent-primary-light: #E0F7FF;
    --accent-secondary: #7B61FF;     /* Purple */
    --accent-secondary-light: #F0ECFF;
    --gradient-accent: linear-gradient(135deg, #00B4D8, #7B61FF);
    --gradient-hero: linear-gradient(135deg, #E0F7FF 0%, #F0ECFF 50%, #F8F9FC 100%);

    /* Risk Colors */
    --risk-low: #10B981;
    --risk-low-bg: #ECFDF5;
    --risk-medium: #F59E0B;
    --risk-medium-bg: #FFFBEB;
    --risk-high: #EF4444;
    --risk-high-bg: #FEF2F2;

    --glow-accent: 0 0 15px rgba(0, 180, 216, 0.12);
}

/* ====== DARK MODE (toggle, publik only) ====== */
[data-theme="dark"] {
    --bg-primary: #0F1923;
    --bg-secondary: #1A2332;
    --bg-card: #1E2D3D;
    --bg-card-hover: #243447;
    --text-primary: #E8EDF2;
    --text-secondary: #8899AA;
    --text-heading: #FFFFFF;
    --border: #2A3A4A;
    --gradient-hero: linear-gradient(135deg, #0F1923 0%, #1A1A2E 50%, #16213E 100%);
    --glow-accent: 0 0 20px rgba(0, 180, 216, 0.25);
}

/* ====== BASE STYLES ====== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    animation: pageAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pageAppear {
    from { opacity: 0; filter: blur(4px); transform: translateY(10px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--accent-secondary);
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

/* NAVBAR */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 25, 35, 0.8);
}

.navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-heading);
    text-decoration: none;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-item {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-item:hover {
    color: var(--accent-primary);
}

/* HERO SECTION */
.hero {
    background: var(--gradient-hero);
    padding: 6rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--text-heading);
    -webkit-background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* CONTAINER */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card {
    background: rgba(30, 45, 61, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* WIZARD */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-container {
    background: var(--bg-card-hover);
    height: 10px;
    border-radius: 5px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

/* LIKERT SCALE RADIO */
.likert-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.likert-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.likert-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
    transform: translateX(4px);
}

.likert-item input[type="radio"] {
    margin-right: 15px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.likert-item.selected {
    border-color: var(--accent-primary);
    background: var(--accent-primary-light);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

[data-theme="dark"] .likert-item.selected {
    background: rgba(0, 180, 216, 0.15);
    border-color: var(--accent-primary);
}

/* UTILITIES */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 0.5rem; }

/* RISK INDICATORS (BADGES) */
.risk-low, .risk-medium, .risk-high {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 6px solid;
    font-weight: 500;
    margin: 1.5rem 0;
}

.risk-low { 
    background: var(--risk-low-bg); 
    color: #065F46; 
    border-color: var(--risk-low); 
}
[data-theme="dark"] .risk-low { background: rgba(16, 185, 129, 0.1); color: #34D399; }

.risk-medium { 
    background: var(--risk-medium-bg); 
    color: #92400E; 
    border-color: var(--risk-medium); 
}
[data-theme="dark"] .risk-medium { background: rgba(245, 158, 11, 0.1); color: #FBBF24; }

.risk-high { 
    background: var(--risk-high-bg); 
    color: #991B1B; 
    border-color: var(--risk-high); 
}
[data-theme="dark"] .risk-high { background: rgba(239, 68, 68, 0.1); color: #F87171; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero p { font-size: 1.1rem; }
    .navbar { padding: 0.75rem 1.25rem; }
    .container { padding: 1.5rem 1rem; }
    .nav-links { display: none; }
}

