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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 25px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: 600;
}

/* Explanation Section */
.explanation {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.explanation h2 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.explanation h3 {
    color: #34495e;
    margin: 15px 0 8px 0;
    font-size: 1.2rem;
}

.explanation ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.explanation li {
    margin-bottom: 6px;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
}

.warning-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
}

/* Assumptions Section */
.assumptions-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.assumptions-container h2 {
    color: #2c3e50;
    margin-bottom: 18px;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.assumptions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.assumption-item {
    text-align: center;
}

.assumption-item .slider-container {
    margin-bottom: 0;
}

.assumption-item .slider-container label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.assumption-item .slider-value {
    font-size: 1rem;
    font-weight: bold;
    color: #667eea;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 2px solid #dee2e6;
    display: inline-block;
    margin-top: 8px;
    min-width: 70px;
}

/* Input Sections */
.inputs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    background: white;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-group h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

/* Slider Styles */
.slider-container {
    margin-bottom: 18px;
}

.slider-container .label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.slider-container label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    margin: 0;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ecf0f1;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-value {
    font-weight: bold;
    color: #667eea;
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    margin: 0;
}

/* Health Check Section */
.health-check {
    background: white;
    padding: 18px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.health-check h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.health-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #28a745;
}

.health-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
    margin-bottom: 8px;
}

.health-warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-bottom: 8px;
}

/* Charts Section */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.chart-section {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chart-section h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.2rem;
    text-align: center;
}

#totalAssetsChart,
#liquidAssetsChart {
    width: 100%;
    height: 450px;
}

/* FAQ Section */
.faq-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    margin-top: 30px;
}

.faq-section h2 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.faq-item p {
    color: #718096;
    line-height: 1.6;
}

/* Additional Content Section */
.additional-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.additional-content h2 {
    color: #2d3748;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.content-article {
    margin-bottom: 25px;
}

.content-article:last-child {
    margin-bottom: 0;
}

.content-article h3 {
    color: #4a5568;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-article p {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 15px;
}

.content-article ul {
    color: #718096;
    padding-left: 20px;
    line-height: 1.6;
}

.content-article li {
    margin-bottom: 8px;
}

.content-article li strong {
    color: #4a5568;
}

/* Benefits Comparison */
.benefits-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

.benefits-column h4 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.benefits-column ul {
    color: #718096;
    padding-left: 20px;
    line-height: 1.6;
}

.benefits-column li {
    margin-bottom: 6px;
}

/* Footer Styles */
.site-footer {
    background: #2d3748;
    color: #e2e8f0;
    margin-top: 40px;
    padding: 40px 0 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    color: #cbd5e0;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 8px;
    }

    header h1 {
        font-size: 1.7rem;
    }

    .inputs-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .input-group {
        padding: 15px;
    }

    .explanation {
        padding: 15px;
    }

    .explanation h2 {
        font-size: 1.3rem;
    }

    .explanation h3 {
        font-size: 1.1rem;
    }

    .assumptions-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .assumptions-container {
        padding: 15px;
    }

    #totalAssetsChart,
    #liquidAssetsChart {
        height: 400px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .language-selector {
        justify-content: center;
    }

    .benefits-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .faq-section,
    .additional-content {
        padding: 15px;
    }

    .site-footer {
        padding: 30px 0 15px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 0;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .input-group {
        padding: 12px;
    }

    .explanation {
        padding: 12px;
    }

    #totalAssetsChart,
    #liquidAssetsChart {
        height: 350px;
    }
}

/* Animation for smooth transitions */
.slider-container input[type="range"] {
    transition: background 0.3s ease;
}

.slider-container input[type="range"]:hover {
    background: #d5d8dc;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}
