

body {
height: 100vh;
margin: 0;
display: flex;     
padding-top: 40px;   
}

/* Custom CSS for reduced navbar height */
.custom-navbar {
    padding: 0.2rem 1rem; /* Reduce vertical and horizontal padding */
}
.custom-navbar .navbar-brand {
    font-size: 1rem; /* Adjust font size of the brand */
    padding: 0.2rem 0; /* Reduce padding of the brand */
}

#sidebar {
    width: 25%;
    min-width: 15%; /* Minimum width */
    max-width: 50%; /* Maximum width */
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ccc;
    position: relative;
}

#resizer {
    width: 5px;
    background-color: #ccc;
    cursor: ew-resize;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Reduce width for very wide screens */
@media (min-width: 1200px) {
    #sidebar {
        width: 25%;
    }
}

/* Further reduce width for ultra-wide screens */
@media (min-width: 1600px) {
    #sidebar {
        width: 20%;
    }
}

#inputPanel {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    background-color: #f8f9fa; /* Light gray background */
}
#listPanel {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #e9ecef; /* Slightly darker gray */
}
#mainPanel {
    flex-grow: 1;
    padding: 10px;
    overflow: auto;
}
.card {
    margin-bottom: 10px;
}
#treatmentHeader {
    padding: 10px;
    border-top: 1px solid #ccc;
    margin-top: 10px;
}
.align-items-center {
    align-items: center !important;
}
.btn {
    height: calc(2.5rem + 2px); /* Matches the input height */
}
#treatmentAreasPanel {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #e9ecef;
}
.info-values p {
    font-size: 0.9rem; /* Reduce font size */
    margin-bottom: 5px; /* Reduce spacing between values */
    line-height: 1.2; /* Adjust line height for compactness */
}

.bar {
    height: 10px; /* Height of the bar */
    border-radius: 4px; /* Rounded corners for the bar */
}

.bar-label {
    width: 40%; /* Increased from 20% to 40% */
    font-size: 0.9rem; /* Maintain consistent font size */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow if text is too long */
    text-overflow: ellipsis; /* Add ellipsis for truncated labels */
}

.bar-container {
    flex-grow: 1; /* Adjust width dynamically for remaining space */
    margin-left: 10px; /* Keep some space between label and bar */
}


.d-flex {
    display: flex; /* Enable flexbox for alignment */
    align-items: center; /* Center items vertically */
}

.throbber {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.card.highlight {
   border: 2px solid #007bff;
   background-color: #e3f2fd;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

