
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 */
}

/* Ensure logo and text align properly */
.custom-navbar .navbar-brand {
    font-size: 1rem;
    padding: 0.2rem 0;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between logo and text */
}

/* Ensure the navbar layout remains intact */
.custom-navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures proper spacing */
}

/* Flex container for navbar items */
.navbar-nav-left {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between links */
}

/* Style the nav links */
.navbar-nav-left .nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem; /* Ensure clickability */
}

/* Push username label to the right */
.username-container {
    margin-left: auto;
}


#sidebar {
    width: 35%;
    min-width: 25%; /* 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 #ffcc00;
   background-color: #fbfde3;
}

#alertContainer {
    position: fixed;
    bottom: 20px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Adjust width as needed */
    max-width: 600px; /* Prevents overly wide alerts */
    z-index: 1050; /* Ensure it appears above other content */
}

.alert {
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add subtle shadow */
}

/* Custom styles only for the image modal */
.custom-image-modal .modal-dialog {
    max-width: fit-content;
    margin: auto;
  }
  .custom-image-modal .modal-body img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
  }


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

/* Custom styles for the treatment filter modal */
#treatmentFilterModal .select-checkbox {
    pointer-events: none;
  }

