#map {
   border-radius: 0.5rem;
   border: 1px solid #374151;
   overflow: hidden;
   height: 70vh;
   width: 100%;
}
#ship-dropdown-menu::-webkit-scrollbar, #table-container::-webkit-scrollbar, #longstops-container::-webkit-scrollbar, #fromport-dropdown-menu::-webkit-scrollbar,#toport-dropdown-menu::-webkit-scrollbar,#voyage-details-container::-webkit-scrollbar,#ports-dropdown-menu::-webkit-scrollbar,#port-whiteboard-list::-webkit-scrollbar,#facility-details-container::-webkit-scrollbar,#port-details-container::-webkit-scrollbar,#congestion-container::-webkit-scrollbar,#ship-list-container::-webkit-scrollbar,#vessel-modal::-webkit-scrollbar,#assistant-response::-webkit-scrollbar {
       width: 5px; /* Adjust the width of the scrollbar as needed */
}
#ship-dropdown-menu::-webkit-scrollbar-thumb, #table-container::-webkit-scrollbar-thumb, #longstops-container::-webkit-scrollbar-thumb, #fromport-dropdown-menu::-webkit-scrollbar-thumb,#toport-dropdown-menu::-webkit-scrollbar-thumb,#voyage-details-container::-webkit-scrollbar-thumb,#ports-dropdown-menu::-webkit-scrollbar-thumb,#port-whiteboard-list::-webkit-scrollbar-thumb,#facility-details-container::-webkit-scrollbar-thumb,#port-details-container::-webkit-scrollbar-thumb,#congestion-container::-webkit-scrollbar-thumb,#ship-list-container::-webkit-scrollbar-thumb,#vessel-modal::-webkit-scrollbar-thumb, #assistant-response::-webkit-scrollbar-thumb { 
       background-color: #374151; /* Adjust the color of the scrollbar thumb */
   background-color: #00c6ff; /* Adjust the color of the scrollbar thumb */
}


  /* Custom styling for date inputs to improve visibility in dark mode */
  input[type="date"] {
    position: relative;
    background-color: #374151; /* slightly lighter than bg-gray-800 */
  }

  /* Add a custom calendar icon that's visible on dark backgrounds */
  input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'%3E%3C/path%3E%3C/svg%3E");
    background-position: center;
    background-size: 20px;
    background-repeat: no-repeat;
    color: transparent;
    cursor: pointer;
    height: 20px;
    width: 20px;
    position: absolute;
    right: 10px;
    opacity: 0.7;
  }

  input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
  }

  /* Firefox */
  input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1);
  }

  /* Edge */
  input[type="date"]::-ms-clear {
    display: none;
  }


  /* styles relation to the sort functionality in the opsn ships table */
  /* Add this to your stylesheet or include in a style tag */
.sort-icon {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.75rem;
  opacity: 0.7;
}

th[data-sort] {
  transition: background-color 0.2s;
}

th[data-sort]:hover {
  background-color: #1e293b;
}


/* styles dealing with the vessel details modal on open ships page */
.leaflet-pane,
    .leaflet-control,
    .leaflet-top,
    .leaflet-bottom {
        z-index: 40 !important; /* Lower than modal z-index */
    }

    /* When modal is open, apply this class to the map container */
    .map-behind-modal {
        position: relative;
        z-index: 10 !important;
    }

    /* Ensure modal always stays on top */
    #vessel-modal-backdrop {
        z-index: 9999 !important;
    }

    /* Fix for modal backdrop display */
    #vessel-modal-backdrop.hidden {
        display: none !important;
    }

    #vessel-modal-backdrop:not(.hidden) {
        display: flex !important;
    }
