/* Main Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

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

header {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

header p {
    margin: 10px 0 0;
    font-size: 1.2em;
    opacity: 0.8;
}

section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 25px;
}

h2 {
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-top: 0;
}

h3 {
    color: #3498db;
    margin-top: 25px;
}

p {
    margin-bottom: 20px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

/* Chart Container */
.chart-container {
    margin: 30px 0;
    text-align: center;
}

.chart-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.chart-column {
    flex: 0 0 48%;
    margin-bottom: 20px;
}

.chart-full {
    flex: 0 0 100%;
    margin-bottom: 20px;
}

.chart-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Highlight Box */
.highlight-box {
    background-color: #f1f9ff;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
}

.highlight-box h4 {
    margin-top: 0;
    color: #3498db;
}

/* Key Metrics */
.metrics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

.metric-box {
    flex: 0 0 23%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.metric-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

.metric-value {
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
    margin: 10px 0;
}

.metric-label {
    font-size: 0.9em;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chart-column {
        flex: 0 0 100%;
    }
    
    .metric-box {
        flex: 0 0 48%;
    }
}

@media (max-width: 480px) {
    .metric-box {
        flex: 0 0 100%;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    margin-top: 30px;
}

/* Interactive Elements */
.tab-container {
    margin: 20px 0;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.tab-button.active {
    background-color: white;
    border-bottom: 3px solid #3498db;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: white;
}

.tab-content.active {
    display: block;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #3498db;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #2c3e50;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}