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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px;
}

.layout-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0;
}

h3 {
    margin-bottom: 6px;
    color: #b0b0b0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.controls-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #3a3a3a;
    width: 300px;
    flex-shrink: 0;
}

.control-section {
    margin-bottom: 10px;
}

.control-section:last-child {
    margin-bottom: 0;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

button {
    padding: 5px 10px;
    border: 1px solid #4a4a4a;
    background-color: #3a3a3a;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    color: #e0e0e0;
}

button:hover {
    background-color: #4a4a4a;
    border-color: #5a5a5a;
}

button.active {
    background-color: #0d7377;
    color: white;
    border-color: #0d7377;
}

button.active:hover {
    background-color: #0a5d61;
    border-color: #0a5d61;
}

.chart-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    height: 700px;
    max-height: 700px;
    border: 1px solid #3a3a3a;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-description {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.chart-description a {
    color: #0d7377;
    text-decoration: none;
}

.chart-description a:hover {
    text-decoration: underline;
}

.chart-timestamp {
    font-size: 11px;
    color: #ffffff;
    text-align: right;
    margin-top: 5px;
}

#performanceChart {
    width: 100% !important;
    height: 100% !important;
    max-height: calc(100% - 60px);
    flex: 1;
}

@media (max-width: 968px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .controls-container {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .chart-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .button-group {
        gap: 6px;
    }
    
    button {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .chart-container {
        height: 500px;
        max-height: 500px;
    }
}