@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0x;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  display: flex;
  justify-content: center; /* Mengatur posisi horizontal ke tengah */
  align-items: flex-start; /* Mengatur posisi vertikal ke atas */
  background: scroll;
  background: linear-gradient(90deg, #fbf3d5 70%, #fff1bc 100%);
  padding: 20px;
}

.container {
  background-color: #fcf8f3;
  border-radius: 5px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.container .hr {
  height: 2px;
  margin: 10px 0px 0px 0px;
  background: rgba(10, 10, 10, 0.6);
}

/*------------------------------Header------------------------------*/

.form-header {
  display: flex;
  align-items: center;
  margin-top: 10px;
  justify-content: space-between;
}

.img img {
  height: calc(3vw + 1vh);
}

.container #judul_form {
  font-size: calc(2vw + 1vh);
  font-weight: bold;
  color: #333;
}

.container .inv {
  margin-right: calc(4vw + 1vh);
}

/*------------------------------User Detail------------------------------*/

.container .content form .user-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0 12px 0;
  position: relative;
  overflow: hidden;
}

.container .user-details .input-box input {
  height: 45px;
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  padding-left: 15px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  transition: all 0.3s ease;
}

.container .user-details .input-box {
  margin-bottom: 15px;
  width: calc(100% / 2 - 20px);
}

.user-details .input-box input:focus,
.user-details .input-box input:valid {
  border-color: #698474;
}

.user-details .input-combotext input {
  height: 45px;
  width: calc(100% - 35px);
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  padding-left: 15px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  background-color: white;
  border-color: #9cafaa;
}

form .user-details .input-combotext {
  margin-bottom: 15px;
  width: calc(100% / 2 - 20px);
}

form .user-details ui-menu-item {
  margin: 1000px;
}

form .user-details .custom-combobox-toggle {
  position: absolute;
  margin-left: -5px;
  height: 45px;
  width: 40px;
  background-color: white;
  border-color: #9cafaa;
}

/*------------------------------Barang Detail------------------------------*/

.content form .barang-details {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  align-items: start;
  position: relative;
}

.content form .barang-details .row {
  margin: 10px 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.content form .barang-details .row .col1,
.content form .barang-details .row .col2,
.content form .barang-details .row .col3,
.content form .barang-details .row .col4 {
  flex: 1;
  padding: 5px;
  box-sizing: border-box;
}

@media (min-width: 769px) {
  .content form .barang-details .row .col1 {
    flex: 0 0 50%; /* 50% dari lebar container */
  }

  .content form .barang-details .row .col2 {
    flex: 0 0 20%; /* 20% dari lebar container */
  }

  .content form .barang-details .row .col3 {
    flex: 0 0 20%; /* 20% dari lebar container */
  }

  .content form .barang-details .row .col4 {
    flex: 0 0 10%; /* 10% dari lebar container */
  }
}

/* Media Queries untuk layar sedang dan kecil */
@media (max-width: 1000px) {
  .content form .barang-details .row .col1 {
    flex: 0 0 95%; /* 50% dari lebar container */
  }

  .content form .barang-details .row .col2 {
    flex: 0 0 35%; /* 20% dari lebar container */
  }

  .content form .barang-details .row .col3 {
    flex: 0 0 35%; /* 20% dari lebar container */
  }

  .content form .barang-details .row .col4 {
    flex: 0 0 10%; /* 10% dari lebar container */
  }
}

form .barang-details .input-box {
  width: 100%;
}

.barang-details .input-box input {
  height: 43px;
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  padding-left: 15px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  transition: all 0.3s ease;
}

.barang-details .input-box .form-control {
  margin-top: 1%;
  margin-bottom: 4%;
}

.barang-details .input-box input:focus,
.barang-details .input-box input:valid {
  border-color: #9cafaa;
}

.barang-details .input-combotext input {
  height: 45px; /*---Tinggi Inputan--*/
  width: 100%;
  outline: none;
  font-size: 16px;
  border-radius: 5px;
  padding-left: 15px;
  border: 1px solid #ccc;
  border-bottom-width: 2px;
  background-color: #fff;
  border-color: #9cafaa;
}

form .barang-details .input-combotext {
  margin-bottom: 15px;
  width: 93.5%;
}

form .barang-details .custom-combobox-toggle {
  position: absolute;
  margin-left: -5px;
  height: 45px;
  width: 40px;
  background-color: white;
  border-color: #9cafaa;
}

/*------------------------------Delete Button------------------------------*/

form .barang-details .input-box .btn-delete {
  background-color: rgb(230, 25, 25);
  border-radius: 8px;
  border-style: none;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font-family: "Haas Grot Text R Web", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 40px;
  line-height: 20px;
  list-style: none;
  margin-bottom: 8.5%;
  outline: none;
  padding: 10px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: color 100ms;
  vertical-align: baseline;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

form .barang-details .input-box .btn-delete:hover,
form .barang-details .input-box .btn-delete:focus {
  background-color: rgba(214, 79, 79, 0.856);
}

/*------------------------------Kirim Form Button------------------------------*/

.button {
  height: 45px;
  margin: 10px 0;
}

.button input {
  height: 100%;
  width: 100%;
  border-radius: 5px;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #71b7e6, #9b59b6);
}

.button input:hover {
  background: linear-gradient(-135deg, #71b7e6, #9b59b6);
}

.content .user-details {
  max-height: 340px;
  overflow-y: scroll;
}

.user-details::-webkit-scrollbar {
  width: 5px;
}

.container .content .category {
  flex-direction: column;
}

/*Add New Question Button*/

.addMore {
  font-size: 15px;
  background: #19dcb7;
  border: 2px solid #11bac5;
  padding: 2px 20px;
  font-weight: bold;
  transition: all 150ms linear;
  width: fit-content;
}

.addMore:hover {
  background: #088ddf;
  border: 2px solid #096aed;
  color: black;
  font-weight: bolder;
  transition: all 250ms linear;
  box-shadow: 0 0 10px #19dcb7, inset 0 0 0 2px #19dcb7;
}

/*------------------------------Alert------------------------------*/
