/* colours */

  /*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/
  /* Reset default body margin and overflow */
  body, html {
    margin: 0; /* Remove default margins */
    padding: 0; /* Remove default padding */
    height: 100%; /* Ensures the body covers the full height of the viewport */
    overflow: auto; /* Prevents scrolling */

    /* Added at time of timepicker */
    justify-content: center;
    align-items: center;

    padding-top: 26px; /* Adjust this value to match the height of the navbar */
  }
  
  /* Main content container */
  main {
    /* height: calc(100% - 100px); Adjusts height to leave space for the nav bar */
    overflow: auto; /* If needed, content inside the main area can scroll */
  }
  /*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/
  
  /* NAVIGATION TOP*/
  /* layout styles */
  nav {
    background: #FFE9D2; /* Or use grey lighten-4 if desired */
    border-bottom: 1px solid lightgray;
    /* border-bottom: 10px solid var(--secondary); */
  }
  #top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10; /* Ensure it stays above other content */
  }
  #top-nav .nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height:auto;
  }

  nav a {
    text-decoration: none;
    display: flex;
    align-items:center;
    gap: 8px;
  }
  
  nav a img {
    height: 24px;
  }
  nav a span {
    font-weight: 520;
    font-size: 20px;
    color: #004978;
  }
  
  nav .icon-container.random {
    display: flex;
    align-items: center;
    gap: 8vw;
    color: #004978;
  }
  
  nav .icon-container.random .material-symbols-outlined {
    font-size: 30px; /*Size of the notification and settings icon*/
    line-height: 1;
    cursor: pointer; /* Add cursor pointer for better user experience */
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48; /*Size of the notification and settings icon*/
  }
  
  nav .icon-container.random1 {
    display: flex;
    align-items: center;
    gap: 10vw;
    color: #004978;
  }
  
  nav .icon-container.random1 .material-symbols-outlined {
    font-size: 30px; /*Size of the notification and settings icon*/
    line-height: 1;
    cursor: pointer; /* Add cursor pointer for better user experience */
    font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48; /*Size of the notification and settings icon*/
  }
    
  /*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/
  
  /* Container for Segmented Buttons */
  .segmented-buttons-container {
    display: flex;
    justify-content: center; /* Centering the button group horizontally */
    margin-top: 20px; /* Gap from the previous element */
  }
  
  /* Segmented Button Group */
  .segmented-buttons {
    display: inline-flex;
    border-radius: 12px;
    background-color: #f5f5f5;
    overflow: hidden;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Elevation */
  }
  
  /* Individual Segmented Button */
  .segmented-button {
    all: unset; /* Reset default button styles */
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Equal width for buttons */
    padding: 12px 24px; /* Button size (adjustable for larger/smaller buttons) */
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* Font size of button text */
    line-height: 20px;
    cursor: pointer;
    position: relative;
    color: #000; /* Default text color */
    text-overflow: ellipsis; /* Truncate text */
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden; /* Hide overflow */
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
  }
  
  /* Active Button Styles */
  .segmented-button.active {
    background-color: #fbe3e8; /* Active button background color */
    color: black; /* Text color for active button */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Elevated active state */
    transform: scale(1.05); /* Slightly enlarge active button to make it feel elevated */
  }
  
  /* Physical Press Effect for the Button */
  .segmented-button:active {
    transform: scale(0.95); /* Shrinks the button slightly to simulate press */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: subtle shadow for press effect */
  }
  
  /* Separator between buttons */
  .segmented-button:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background-color: #ccc;
  }

  /*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/

  /* Container for the entire input box */
.location-container {
  /* width: 350px; */
  /* background-color: #1a1a1a; Dark background */
  background-color: #004978;
  /* border: 2px solid #fff; White border */
  border-radius: 12px; /* Rounded corners */
  /* color: #fff; */
  font-family: Arial, sans-serif;
  display: none;
  flex-direction: column;
  /* gap: 5px; */
  padding: 20px; /* Gap from container walls */
  margin: 20px; /* 20px margin on all sides */
}

/* Individual input row */
.input-row {
  display: flex;
  align-items: center;
  gap: 12px; /* Space between icon and text input */
  position: relative;
}

/* Input fields */
.location-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  flex: 1;
  

}

.location-input::placeholder {
  /*color: #aaa; Lighter placeholder color */
  color: #fff;
  opacity: 0.4; /* 50% transparency */ 
}

/* Icons styling */
.icon {
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #fff;
}

.pickup-icon {
  border-radius: 50%; /* Circle for pickup icon */
  position: relative;
}

.pickup-icon::before {
  content: "";
  width: 6px;
  height: 6px;
  /* background-color: #000; Black dot */
  border-radius: 50%;
  position: absolute;
}

/* Connecting line between icons */
.pickup-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 35px; /* Line height between the icons */
  background-color: #fff;
  bottom: -37px;
  left: 50%;
  transform: translateX(-50%);
}

.drop-icon {
  border-radius: 3px; /* Square with slight curve */
  position: relative;
}

.drop-icon::before {
  content: "";
  width: 6px;
  height: 6px;
  /* background-color: #000; */
  border-radius: 50%;
  position: absolute;
}

/* Divider line */
.divider-line {
  height: 2px;
  background-color: #fff; /* White line */
  width: calc(100% - 40px); /* Starts from the text, excluding icons */
  margin-left: 28px;
}


/*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/

/* Minimum Common Route Container */
.min-route-container {
  background-color: #f5f5f5; /* Light background color for the container */
  padding: 20px; /* Gap from container walls */
  border-radius: 12px; /* Rounded corners */
  margin: 20px; /* 20px margin on all sides */
  max-width: calc(100% - 40px); /* Ensure the container doesn't overflow (20px margin on each side) */
  box-sizing: border-box; /* Include padding and border in the element's width */
  border: 1px solid #ccc; /*Border colour*/
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Elevation */
}

/* Text inside the container */
.min-route-text {
  /* font-size: 14px; */
  font-family: 'Roboto', sans-serif;
  /* font-weight: 525; */
  color: #333;
  margin-bottom: 12px; /* Gap between text and slider */
}

/* Slider styling */
.min-route-slider {
  width: 100%;
  -webkit-appearance: none; /* Remove default styling in webkit browsers */
  appearance: none;
  height: 8px;
  background: #ddd;
  border-radius: 10px;
  outline: none;
  transition: background 0.3s;
}

.min-route-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6200ee;
  cursor: pointer;
}

.min-route-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6200ee;
  cursor: pointer;
}

.min-route-slider:focus {
  background: #9c4dcc; /* Darker background color when slider is focused */
}

/*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/
.time-picker-container {
  display:flex;
  flex-wrap: nowrap; /* Prevent wrapping to the next line */
  align-items: center; /* Vertically align items */
  justify-content: left;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 12px;
  box-sizing: border-box; /* Include padding and border in the element's width */
  border: 1px solid #ccc; /* Border colour */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Elevation */
  max-width: calc(100% - 40px); /* Ensure the container doesn't overflow (20px margin on each side) */
  text-align:left;
  margin: 20px;
}

.work-timings-text {
  white-space: nowrap; /* Prevent text from wrapping */
  margin: 0; /* Ensure no extra space from margins */
  line-height: 1.2; /* Adjust line height for tighter spacing */
}

.timepicker {
  flex: 1; /* Allow the input fields to shrink and grow */
  max-width: 100px; /* Limit the maximum width */
  min-width: 50px; /* Ensure a reasonable minimum width */
  margin: 0 5px; /* Add some space between elements */
  padding: 5px; /* Inner padding for inputs */
  border: 1px solid #ccc; /* Border for inputs */
  border-radius: 5px; /* Rounded corners */
  text-align: center; /* Center align text inside the input */
  box-sizing: border-box; /* Include padding and border in width */
  line-height: 1.2; /* Tighten text spacing */
}

.datetimepicker {
  flex: 1; /* Allow the input fields to shrink and grow */
  max-width: 100px; /* Limit the maximum width */
  min-width: 50px; /* Ensure a reasonable minimum width */
  margin: 0 5px; /* Add some space between elements */
  padding: 5px; /* Inner padding for inputs */
  border: 1px solid #ccc; /* Border for inputs */
  border-radius: 5px; /* Rounded corners */
  text-align: center; /* Center align text inside the input */
  box-sizing: border-box; /* Include padding and border in width */
  line-height: 1.2; /* Tighten text spacing */
}

.hidden {
  display: none !important;
}

/*__________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/

.single-time-picker-container {
  display:none;
  flex-wrap: nowrap; /* Prevent wrapping to the next line */
  align-items: center; /* Vertically align items */
  justify-content: left;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 12px;
  box-sizing: border-box; /* Include padding and border in the element's width */
  border: 1px solid #ccc; /* Border colour */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Elevation */
  max-width: calc(100% - 40px); /* Ensure the container doesn't overflow (20px margin on each side) */
  text-align:left;
  margin: 20px;
}

.single-time-picker-container.visible {
  display: flex; /* Shown when needed */
}

/*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/
.day-selector-container {
  display: flex;

  flex-wrap: nowrap; /* Prevent wrapping to the next line */

  /* flex-direction: column; */

  align-items: center;
  background: #f5f5f5;
  padding: 10px;
  border-radius: 12px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: calc(100% - 40px);

  text-align: center;

  margin: 20px;
  
}

.day-selector-title {
  /* font-size: 1.2rem;
  margin-bottom: 10px; */

  white-space: nowrap; /* Prevent text from wrapping */
  margin: 0; /* Ensure no extra space from margins */
  line-height: 1.2; /* Adjust line height for tighter spacing */
}

.day-selector {
  display: flex;
  /* gap: 10px; Space between the circles */
}

.day-circle {
  min-width: 26px;
  min-height: 26px;
  margin: 0 5px;
  border: 1px solid #ccc;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #e0e0e0 !important; /* Match JS default */
  color: #555 !important;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.day-circle.selected {
  background: #4caf50 !important;
  color: white !important;
  box-shadow: 0 0 2px rgba(76, 175, 80, 0.8) !important;
}

@media (max-width: 376px) {
  .day-circle {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    margin: 0 4px;
  }
}

.hidden {
  display: none !important;
}

/* 
.day-circle:hover {
  background: #c8e6c9;  (Light green on hover)
} */
/*____________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/
.preferences-container {

  /* display:flex; */
  flex-wrap: nowrap; /* Prevent wrapping to the next line */
  align-items:center;
  box-sizing: border-box;
  border: 1px solid #ccc;
  text-align: center;
  justify-content: left;


  max-width: calc(100% - 40px);
  margin: 20px;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 10px;
}

.preferences-title {
  /* font-size: 1.5rem; */
  /* margin-bottom: 15px; */

  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: 550;
  color: #333;
  margin-bottom: 8px; /* Gap between text and slider */

  /* white-space: nowrap; Prevent text from wrapping */
  /* line-height: 1; Adjust line height for tighter spacing */

  text-align: left;
  margin-left: 1px;
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  /* gap: 10px; */
}

.chip {
  display: inline-block;
  /* padding: 10px 15px; */
  font-size: 0.8rem;
  color: #555;
  background: #e0e0e0;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.chip.selected {
  background: #4caf50;
  color: #fff;
}

/*__________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________*/

.textbox-container {

  flex-wrap: nowrap; /* Prevent wrapping to the next line */
  align-items:center;
  box-sizing: border-box;
  border: 1px solid #ccc;
  text-align: center;
  justify-content: left;

  max-width: calc(100% - 40px);
  margin: 20px;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 10px;

  font-family: Arial, sans-serif;
  /* text-align: center; */

}

label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  font-size: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#char-count {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}






/* Add this to highlight mandatory fields */
.mandatory:invalid {
  border: 1px solid red;
}

.hidden {
  display: none;
}
