@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

/* ================= LOGIN PAGE ================= */
.body-login {
  background-color: #FFAA00;
  display: flex;
  height: 100vh;
}

.figure {
  display: flex;
  flex-direction: column;
  width: 50%;
  height: 100%;
}

.logo {
  padding-left: 50px;
  padding-top: 50px;
}

.form-login {
  background-color: white;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
  width: 50%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#login-figure {
  width: 450px;
  height: 300px;
}

.container1 {
  width: 350px;
}

.container1 .header {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.header h2 {
  font-weight: 600;
  font-size: 24px;
  color: #237227;
}

.input {
  display: flex;
  flex-direction: column;
  margin-top: 50px;
}

/* Default Input Style for Login */
input {
  background-color: rgba(255, 215, 134, 0.4);
  border: none;
  height: 47px;
  border-radius: 8px;
  padding-left: 15px;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 400;
}

input::placeholder {
  font-size: 13px;
}

label {
  font-size: 15px;
  color: #FFAA00;
  font-weight: 500;
}

.lupa-kata-sandi {
  display: flex;
  justify-content: end;
  width: 350px;
  font-weight: 500;
  margin-top: 15px;
}

.lupa-kata-sandi a {
  font-weight: 500;
  text-decoration: none;
  color: #FFAA00;
  font-size: 15px;
}

.button-login {
  width: 100%;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.button-login button {
  border: none;
  width: 100%;
  height: 47px;
  border-radius: 8px;
  background-color: #519A66;
  color: white;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 15px;
}

.button-login span {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
}

.button-login button:hover {
  cursor: pointer;
  background-color: #237227;
}

.button-login a {
  text-decoration: none;
  color: #FFAA00;
}

.button-login a:hover {
  color: #FFBE33;
}

.button-login p {
  color: #237227;
  opacity: 0.8;
}

/* ================= BERANDA LAYOUT ================= */
.body-beranda {
  background-color: #f1f5f9;
  /* Update: Warna background main area lebih terang */
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Styling Content Utama */
.content {
  padding: 30px;
  margin-left: 280px;
  /* PENTING: Harus sama dengan lebar sidebar baru */
  width: calc(100% - 280px);
  min-height: 100vh;
  transition: all 0.3s ease;
}

.content-beranda {
  background-color: white;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  /* Update: Tambah shadow halus */
}

#title {
  font-weight: 600;
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  color: #237227;
  padding: 50px;
  width: fit-content;
}

.content-beranda .btn-fitur {
  padding: 15px;
}

.content-beranda .btn-fitur button {
  color: white;
  background-color: #519A66;
  border: none;
  border-radius: 8px;
  height: 45px;
  width: 180px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.content-beranda .btn-fitur button:hover {
  cursor: pointer;
  background-color: #237227;
}

#kirim {
  height: 45px;
  width: 150px;
  border-radius: 8px;
  border: none;
  background-color: #519A66;
  color: white;
}

#kirim:hover {
  background-color: #237227;
  cursor: pointer;
}

/* ================= MODAL & MISC ================= */
.modal-body input,
.modal-body select {
  height: 35px;
  border-radius: 8px;
  background-color: rgba(255, 215, 134, 0.4);
  opacity: 0.5;
  border: none;
  padding-left: 15px;
}

.modal-body label {
  font-weight: 500;
  font-size: 14px;
}

.checkbox:hover {
  cursor: pointer;
}

/* ================= ANIMATIONS ================= */
@keyframes subtleBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.box2 {
  animation: subtleBounce 3s infinite ease-in-out;
  transition: transform 0.3s ease-in-out;
  width: 65%;
  height: 65%;
  background: white;
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  box-shadow: 5px 10px 18px rgba(255, 170, 0, 0.3);
  box-sizing: border-box;
}

.data-box {
  cursor: pointer;
  background: rgba(255, 215, 134, 0.54);
  padding: 35px;
  border-radius: 15px;
  color: #FFAA00;
  font-size: 20px;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.data-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFAA00, #cc8800);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 0;
  border-radius: 15px;
}

.data-box:hover::before {
  opacity: 1;
}

.data-box:hover {
  color: white;
  box-shadow: 0px 10px 25px rgba(204, 136, 0, 0.6);
  transform: translateY(-5px);
}

.data-box i {
  font-size: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s ease-in-out;
  position: relative;
  z-index: 1;
}

.data-box:hover i {
  transform: scale(1.2);
}

.data-box p {
  position: relative;
  z-index: 1;
}

@keyframes fadeSlideDownScale {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kata {
  text-align: center;
  background: rgba(255, 170, 0, 0.85);
  color: white;
  padding: 25px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  animation: fadeSlideDownScale 0.8s ease-out;
  transition: all 0.3s ease-in-out;
}

.kata:hover {
  background: rgba(204, 136, 0, 1);
  box-shadow: 0px 15px 30px rgba(204, 136, 0, 0.5);
  transform: scale(1.02);
}

.kata h2 {
  margin-bottom: 0;
}

.hello-text {
  position: absolute;
  top: 10%;
  right: -10%;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 15px;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  color: #237227;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.content-figure:hover .hello-text {
  opacity: 1;
  transform: translateY(0);
}

/* Aturan Utama untuk Konten */
.content {
  transition: all 0.3s ease;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
}

/* Tampilan Desktop (Layar Lebar >= 992px) */
@media (min-width: 992px) {
  .content {
    /* Geser konten ke kanan sebesar lebar sidebar Anda */
    /* Ganti 260px sesuai dengan lebar asli .side-bar Anda */
    margin-left: 260px;
    width: calc(100% - 260px);
  }

  /* Sembunyikan tombol hamburger di desktop jika sidebar ingin selalu tampil */
  .hamburger-menu {
    display: none;
  }

  /* Pastikan sidebar tetap tampil di desktop */
  .side-bar {
    left: 0 !important;
  }
}

/* Tampilan Mobile (Layar Kecil < 992px) */
@media (max-width: 991.98px) {
  .content {
    margin-left: 0;
    width: 100%;
    /* Beri jarak atas agar tidak tertutup tombol hamburger floating */
    padding-top: 70px;
  }

  .side-bar {
    left: -100%;
    /* Sembunyikan sidebar di kiri luar layar */
  }

  .side-bar.active {
    left: 0;
    /* Tampilkan saat tombol hamburger diklik */
  }
}