/* Viewport-First Reset */
body, html { 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    height: 100%; 
    background-color: #f4f7fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* App Container */
.app-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 3px solid #e0e0e0;
}

header h1 {
    font-size: 2.5em;
    color: #0d47a1; /* Deep Blue for professionalism */
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1em;
    color: #666;
}

/* Section Cards */
.section-card {
    background: white;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-card h2 {
    color: #1a237e;
    border-bottom: 2px solid #e8eaf6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.6em;
}

/* Loading Screen */
#loading-screen {
    text-align: center;
    padding: 100px 20px;
    color: #0d47a1;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #d32f2f; /* Coke Red */
    border-right: 8px solid #1976d2; /* Pepsi Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.disclaimer {
    color: #777;
    font-size: 0.9em;
    margin-top: 15px;
}

/* Results Layout */
.hidden {
    display: none;
}

/* Charts */
.radar-chart-container {
    max-height: 500px;
    margin: 0 auto;
}

.bar-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.chart-wrapper {
    background: #fcfcfc;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

/* Footer */
.footer-section {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }
    .app-container {
        padding: 10px;
    }
    .radar-chart-container {
        height: 350px; /* Ensure charts are visible on small screens */
    }
}