body { margin: 0; }
.container {
    display: flex;
    height: 100vh;
    font-family: Arial, sans-serif;
}
.sidebar {
    width: 250px;
    min-width: 150px; /* Explicitly prevent shrinking below this */
    /* flex-shrink: 0;   Prevent this item from shrinking */
    padding: 20px;
    background: #f5f5f5;
    overflow-y: auto;
    box-sizing: border-box;
}
/* .sidebar {
    width: 300px;
    padding: 20px;
    background: #f5f5f5;
    overflow-y: auto;
    box-sizing: border-box;
} */

.charts {
    flex: 1;
    min-width: 50px; /* Allow this flex item to shrink to zero if needed */

    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.chart-container {
    flex: 1;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    position: relative;
}
.info-box {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
}
#intradayInfo {
    top: 10px;
    left: 10px;
}
#dailyInfo {
    top: 10px;
    left: 10px;
}
.controls {
    margin-bottom: 20px;
}
.controls label,
.controls select,
.controls button,
.controls input {
    display: block;
    margin-bottom: 8px;
}
#message {
    color: #d32f2f;
    padding: 5px;
    border-radius: 3px;
    margin: 10px 0;
    font-size: 14px;
    min-height: 20px;
}
.event-item {
    padding: 8px;
    margin: 4px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.event-item:hover {
    background: #e0e0e0;
}
#eventsList {
    border: 2px solid blue;
    min-height: 100px;
    padding: 5px;
}
input[type="file"], input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}