:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
}

.result-display, .disclaimer-box {
    word-wrap: break-word;
}

.language-switch {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-switch button {
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-switch button:hover {
    background: var(--secondary-color);
    color: white;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.model-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.model-btn {
    padding: 12px 25px;
    border: 2px solid var(--secondary-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.model-btn.active {
    background: var(--secondary-color);
    color: white;
}

.gender-selection {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.gender-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
}

.gender-btn.active {
    border-color: var(--secondary-color);
    background: #e8f4fd;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-column {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

input, select {
    width: 90%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

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

.calculate-btn:hover {
    background: #2980b9;
}

.reset-btn {
    background: #95a5a6;
    color: white;
}

.reset-btn:hover {
    background: #7f8c8d;
}

.result-box {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.result-display {
    text-align: center;
    margin-bottom: 20px;
}

.result-item {
    margin: 15px 0;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.risk-description {
    font-size: 16px;
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    background: #e8f4fd;
    border-left: 4px solid var(--secondary-color);
}

.risk-description.slowed {
    background: #e8f6f3;
    border-left-color: var(--success-color);
}

.risk-description.accelerated {
    background: #fdeaea;
    border-left-color: var(--danger-color);
}

/* .threshold-info {
    background: #fff8f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    margin-top: 20px;
}

.threshold-info h4 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 16px;
} */

.disclaimer-box {
    margin-top: 30px;
    padding: 20px;
    background: #fff8f8;
    border-left: 4px solid #e74c3c;
    border-radius: 5px;
    font-size: 13px;
}

.disclaimer-box h4 {
    color: #e74c3c;
    margin-bottom: 10px;
    font-size: 16px;
}

.disclaimer-box ul {
    padding-left: 20px;
    margin: 0;
}

.disclaimer-box li {
    font-size: 12px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .model-selection, .gender-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .language-switch {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .result-item {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}