/* General Body Styles */
body {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  /* background-color: #f4f4f4; */
}
section {
  padding: 5px;
}

/* Navigation Bar */
nav {
  background-color: #fbcd6c;
  color: black;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#orderInfo ul {
  list-style: none;
  margin: auto;
  padding: 0px;
}
#orderInfo li {
  margin-bottom: 5px;
}

nav p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

nav i {
  color: black;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav i:hover {
  color: #777;
}

nav form {
  display: flex;
  justify-content: center;
  align-items: center;
}

nav form input[type="text"] {
  padding: 5px;
  margin-right: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 200px;
}

nav button {
  padding: 0px;
  border: none;
  background-color: transparent;
}

nav button[type="submit"] {
  width: unset;
  padding: unset;
  background-color: unset;
  color: unset;
  border: none;
  border-radius: unset;
  font-size: unset;
  cursor: unset;
}

nav button[type="submit"]:hover {
  background-color: unset;
}

/* Section and Table Styling */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background-color: white;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th {
  background-color: #fbcd6c;
  color: black;
  text-align: left;
  padding: 10px;
  font-family: "Open Sans", sans-serif;
}

td {
  padding: 10px;
  text-align: left;
}

table tr:nth-child(odd) {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f1f1f1;
}

/* Form and Input Styling */
input[type="text"],
input[type="button"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

input[type="button"] {
  background-color: #fbcd6c;
  color: black;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

input[type="button"]:hover {
  background-color: #333;
  color: white;
}

/* Fixed Position Buttons */
/* nav button.fixed {
  position: fixed;
  top: 5px;
  background-color: #333;
}

nav button.fixed:hover {
  background-color: #555;
} */

/* Login Page Styles */
body.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

#main {
  width: 100%;
  max-width: 400px;
  background-color: white;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.container {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}

input.login {
  width: 100%;
  padding: 10px;
  margin: 5px 0 20px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;
}

/* button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #555;
} */

/* Modal Styling */
#newOrder {
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translate(-50%, 0);
  width: 80%;
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 1000;
  font-family: "Roboto", sans-serif;
  overflow-y: scroll;
  max-height: 80%;
}
#orderForm {
  display: grid;
  column-gap: 20px;
  row-gap: 30px;
  grid-template-columns: auto auto auto;
}
textarea {
  height: 150px;
  resize: none;
  overflow-y: auto;
}
#comment {
  width: 150px;
}
#serviceComment {
  height: 50px;
}
/* Modal Heading */
#newOrder h2 {
  text-align: center;
  color: #333;
  margin-bottom: 15px;
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
}

/* Modal Inputs */
#newOrder input {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  font-size: 12px;
  box-sizing: border-box;
}

/* Close Button */
button.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

button.close-btn:hover {
  color: red;
}
button.delete-btn {
  background-color: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  width: 100%;
  justify-items: center;
}

button.delete-btn:hover {
  color: red;
}

/* Create Order Button */
#newOrder #createOrder {
  margin-bottom: 20px;
  width: unset;
  padding: 10px 20px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

#newOrder #createOrder:hover {
  background-color: #555;
}

/* Modal Centering Divs */
#newOrder div {
  text-align: center;
}
#orderDiv {
  text-align: start !important;
}

/* Modal Styles */
.modal {
  position: fixed; /* Stay in place */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 1200px;
  max-height: 90%;
  min-height: 70%;
  height: 80vh;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  overflow: auto;
  align-content: center;
}

#modalImages {
  width: 100%;
}

/* Image inside modal */
.modal-image {
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 10px;
  height: 150px;
}

.modal-image:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
  transition: 0.3s;
}

/* The Modal (background) */
.image-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9); /* Dark background */
}

/* Modal Content (the image) */
.modal-content {
  margin: auto;
  display: block;
  /* width: 80%;
  max-width: 700px; */
  max-height: 80%;
}

/* Caption of the modal image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-modal:hover {
  color: #bbb;
}

/* Next & Previous Buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: rgb(88, 88, 88);
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev {
  left: 0;
  border-radius: 3px 0 0 3px;
}

.next {
  right: 0;
  border-radius: 0 3px 3px 0;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
}
.orderLink {
  cursor: pointer;
  text-align: center;
}
#toUser,
#toWh {
  display: none;
}

/* Responsiveness */
@media screen and (max-width: 768px) {
  nav form input[type="text"] {
    width: 150px;
  }

  table,
  th,
  td {
    font-size: 10px;
  }

  #newOrder {
    width: 80%;
  }
}

@media screen and (max-width: 480px) {
  #newOrder {
    width: 90%;
    padding: 15px;
  }

  #newOrder h2 {
    font-size: 20px;
  }
}
#services {
  display: none;
}
#tabSwitch {
  display: flex;
  background-color: #f8f8f8;
  border-bottom: 2px solid #ddd;
  width: fit-content;
}

#tabSwitch h3 {
  text-align: center;
  padding: 10px 15px;
  margin: 0;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  background-color: #f9f9f9;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

/* Active tab style */
#tabSwitch h3.active {
  background-color: #fbcd6c; /* Matches the page's green theme */
  color: black; /* White text when active */
  border-color: #fbcd6c;
  font-weight: 600;
}

#tabSwitch h3:not(.active):hover {
  background-color: #b9b9b9; /* Slight green tint on hover */
  color: #000000; /* Darker text on hover for better readability */
  border-color: #ccc; /* Border change on hover */
}
#services {
  display: none;
}
#services input[type="number"] {
  width: 60px;
}

#services input[type="text"] {
  width: 200px;
}
#services input {
  margin: 10px;
}

#services button {
  background-color: #555;
  color: white;
  border: none;
  padding: 5px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  height: 40px;
  align-self: center;
}

#services button:hover {
  background-color: #777;
}
.input-container {
  position: relative;
  margin-top: 7px;
}

.input-container input,
.input-container select,
.input-container textarea {
  width: 100%;
  padding: 10px;
  padding-right: 40px;
  margin-bottom: 10px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.input-container input:focus,
.input-container select:focus,
.input-container textarea:focus {
  outline: none;
  border-color: #333;
}

.input-container input.valid,
.input-container textarea.valid {
  border-color: #28a745; /* Green for valid */
}

.input-container input.invalid,
.input-container textarea.invalid {
  border-color: #dc3545; /* Red for invalid */
}

.input-container input.warning,
.input-container textarea.warning {
  border-color: #ffc107; /* Yellow for warning */
}

/* Placeholder for animated labels */
.input-container label {
  position: absolute;
  left: 10px;
  top: 40%;
  transform: translateY(-50%);
  background: #fff;
  padding: 0 5px;
  font-size: 14px;
  color: #aaa;
  transition: 0.3s;
  pointer-events: none;
}

/* Move label up when input is focused or has a value */
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.input-container textarea:focus + label,
.input-container
  textarea:not(:placeholder-shown)
  + label
  .input-container
  select:focus
  + label,
.input-container select:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #333;
}

/* Icon next to the input */
.input-container .input-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #aaa;
  pointer-events: none;
}

.input-container input.valid + .input-icon,
.input-container textarea.valid + .input-icon {
  color: #28a745;
}

.input-container input.invalid + .input-icon,
.input-container textarea.invalid + .input-icon {
  color: #dc3545;
}

.input-container input.warning + .input-icon,
.input-container textarea.warning + .input-icon {
  color: #ffc107;
}

/* Helper text */
.helper-text {
  font-size: 12px;
  margin-top: 5px;
}

.helper-text.error {
  color: #dc3545;
}

.helper-text.success {
  color: #28a745;
}

.helper-text.warning {
  color: #ffc107;
}

#transfer {
  display: flex;
}
#transfer input {
  margin: 10px;
  max-width: 300px;
}
#transfer input[type="button"] {
  width: 100px;
}

#parts {
  display: none;
}
.approve {
  cursor: pointer;
  font-size: 20px;
}

#addItemsIcon {
  margin-left: 100px;
  font-size: 20px;
  color: green;
  cursor: pointer;
}
#addItemsModal > div {
  display: flex;
  justify-content: space-around;
  height: 90%;
}
#empItems,
#serviceItems {
  border: black solid 1px;
  height: 80%;
  width: 30%;
  padding: 10px;
}
#addItemsModal ul,
#serviceItemsPreview {
  padding-inline-start: 0px;
  height: 100%;
  overflow: auto;
  margin: 2px;
}
#addItemsModal li {
  list-style: none;
  font-size: 18px;
  position: relative;
  margin: 5px;
  border-bottom: black 1px dotted;
}
#addItemsModal li i {
  position: absolute;
  right: 20px;
  font-size: 20px;
  cursor: pointer;
}
#addItemsModal li i:hover {
  color: gray;
}
.icon {
  cursor: pointer;
  font-size: 24px;
  margin: 10px;
}
#dropdown {
  width: fit-content;
}
#dropdown div {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 150px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  position: absolute;
  left: 0;
}

#dropdown:hover div {
  display: block;
}

#dropdown ul li {
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#dropdown ul li:hover {
  background: #f0f0f0;
}

.radio-group {
  font-family: Arial, sans-serif;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  width: 150px;
}

.radio-group label {
  display: block;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  border-radius: 5px;
}

.radio-group input {
  display: none;
}

.radio-group label:hover {
  background: #f0f0f0;
}

.radio-group input:checked + label {
  background: #e0e0e0;
  font-weight: bold;
}
