:root {
    --bg-color: #0b0f19;
    --surface-color: rgba(30, 41, 59, 0.7);
    --surface-highlight: rgba(51, 65, 85, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary: #3b82f6;
    --primary-hover: #2563eb;

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);

    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.glow-1 {
    background: var(--primary);
    width: 600px;
    height: 600px;
    top: -200px;
    left: -200px;
}

.glow-2 {
    background: var(--success);
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
}

/* Layout */
.app-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease-out forwards;
}

.scenario-desc {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.decisions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-decision {
    background: var(--surface-highlight);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    text-align: left;
    justify-content: flex-start;
    font-size: 1.1rem;
}

.btn-decision i {
    font-size: 1.25rem;
}

.btn-decision:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.btn-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.btn-warning {
    background: var(--warning-bg);
    border-color: var(--warning);
    color: var(--warning);
}

.btn-danger {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}


/* Feedback Screen */
.feedback-card {
    text-align: center;
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feedback-icon.success {
    color: var(--success);
}

.feedback-icon.warning {
    color: var(--warning);
}

.feedback-icon.danger {
    color: var(--danger);
}

.explanation-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.risk-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.indicator-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.indicator-val {
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.val-high {
    color: var(--danger);
}

.val-medium {
    color: var(--warning);
}

.val-low {
    color: var(--success);
}

/* Progress */
.progress-container {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-highlight);
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.dot.completed {
    background: var(--success);
}

/* Footer */
.educational-note {
    text-align: center;
    padding: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    width: 100%;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Summary Screen */
.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.score-num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    color: var(--text-secondary);
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
}

.final-message {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.final-message p {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
}

.final-message .highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
    display: block;
    margin-top: 1rem;
}