/* General Body Styling */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #f0f0f0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-panel {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 200px;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

.side-panel button {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.side-panel button:hover {
    background-color: #777;
}

.filter-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: calc(100% - 200px);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    left: 250px;
    z-index: 10;
}

.hidden {
    display: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 50px;
}

.filter-group label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.filter-group input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    width: 150px;
}

.submit-btn, .download-btn {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 50px;
}

.submit-btn {
    background-color: #007bff;
    color: white;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.download-btn {
    background-color: #28a745;
    color: white;
}

.download-btn:hover {
    background-color: #218838;
}

.main-content {
    margin-top: 60px;
    margin-left: 200px;
    padding: 20px;
}


/* .graph-container {
    width: 88vw;
    height: 100vh;
    margin-left: 11vw;
    margin-top: 7vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
} */

.graph-container {
    width: 88vw;
    height: 100vh;
    margin-left: 11vw;
    margin-top: 7vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: block;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1000;
}
.popup-content {
    text-align: center;
}
.popup button {
    margin-top: 10px;
    padding: 8px 16px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
}

#source-bar-chart, #destination-bar-chart, #source-to-destination-bar-chart, #tasks-by-robot-id-bar-chart {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
}

/* Dropdown Button */
.dropbtn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    width: 100%; /* Adjust width as needed */
    text-align: center;
    display: inline-block;
    margin: 8px 0;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%; /* Ensure the dropdown container matches the button width */
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 100%; /* Ensure the dropdown content matches the button width */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content div {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content div:hover {
    background-color: #f1f1f1;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}


/* Responsive Design for Smaller Screens */
@media (max-width: 768px) {
    .filter-container {
        flex-wrap: wrap;
    }

    .filter-group, .submit-btn, .download-btn {
        margin-bottom: 10px;
    }

    .filter-container {
        left: 0;
        width: 100%;
    }

    .graph-container {
        width: 90vw;
        height: 60vh;
        margin-left: 5vw;
        margin-top: 5vh;
    }
}
