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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: #1e3a5f;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h2 {
    font-size: 24px;
    font-weight: 500;
}

.reset-btn {
    background: #ff5c5c;
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.reset-btn:hover {
    background: #ff4040;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background: #fafafa;
}

.tab {
    padding: 15px 30px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.tab.active {
    background: white;
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
}

.tab:hover {
    background: #f0f0f0;
}

.chart-container {
    padding: 30px;
    position: relative;
    height: 500px;
}

.legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.legend-color {
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

.legend-item span {
    white-space: nowrap;
}

.actions {
    padding: 20px 30px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 10px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.btn-primary {
    background: #1e3a5f;
    color: white;
}

.btn-primary:hover {
    background: #2c5282;
}

