/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(0, 110, 185);
  background-image: url('images/background.jpg');
}
.container {
  position: relative;
  max-width: 700px;
  width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.container header {
  font-size: 1.5rem;
  color: #333;
  font-weight: 500;
  text-align: center;
}
.container .form {
  margin-top: 30px;
}
.form .input-box {
  width: 100%;
  margin-top: 20px;
}
.input-box label {
  color: #333;
  font-weight: 500;
}
.form :where(.input-box input, .select-box, .input-box select, .input-box textarea) {
  position: relative;
  height: 50px;
  width: 100%;
  outline: none;
  font-size: 1rem;
  color: #707070;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0 15px;
}
/* Perbaikan khusus untuk input date */
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  min-height: 50px;
}
/* Fix khusus untuk Safari */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    input[type="date"] {
      width: calc(100% - 30px);
      padding-right: 30px;
    }
  }
}
.input-box textarea {
  height: 100px;
  padding: 15px;
  resize: vertical;
}
.input-box input:focus,
.input-box select:focus,
.input-box textarea:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  border-color: rgb(0, 110, 185);
}
.form .column {
  display: flex;
  column-gap: 15px;
}
/* Style untuk input file */
.input-box input[type="file"] {
  padding: 12px 15px;
  background: #f9f9f9;
  border: 1px dashed #ddd;
}
.input-box input[type="file"]::file-selector-button {
  margin-right: 15px;
  padding: 8px 12px;
  background: rgb(0, 110, 185);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.input-box input[type="file"]::file-selector-button:hover {
  background: rgb(0, 85, 142);
}
.input-box small {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  color: #666;
}
/* Style untuk select box */
.input-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 1em;
}
.form button {
  height: 55px;
  width: 100%;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgb(118 139 0);
  border-radius: 6px;
}
.form button:hover {
  background: rgb(84, 99, 0);
}
/*Responsive*/
@media screen and (max-width: 500px) {
  .form .column {
    flex-wrap: wrap;
    gap: 15px;
  }
  .form .column .input-box {
    width: 100%;
  }
  .input-box textarea {
    height: 120px;
  }
  /* Perbaikan tambahan untuk mobile */
  input[type="date"] {
    width: 100%;
    padding-right: 15px;
  }
}


.error-box {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.success-box {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}



.thumbnail-box {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.thumbnail-box img {
  display: block;
  margin: 10px 0;
}

