/* ================= GLOBAL ================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, rgb(18, 140, 222), rgb(0, 30, 60));
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #001e3c;
  position: relative;
  z-index: 1001;
}

.logo img {
  height: 60px;
}

.nav-buttons a {
  color: white;
  margin-left: 10px;
  text-decoration: none;
}
.nav-buttons a:hover {
  text-decoration: underline;
}

.mobile-toggle {
  display: none;
  font-size: 26px;
  background: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  cursor: pointer;
}

/* SIDEBAR */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 250px;
  background: #012b4c;
  padding: 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 9999;
}
.mobile-sidebar.active {
  transform: translateX(0);
}
.mobile-sidebar .close-btn {
  font-size: 24px;
  background: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
  padding: 4px 8px;
}
.mobile-sidebar a {
  display: block;
  padding: 10px;
  margin: 5px 0;
  color: white;
  text-decoration: none;
  background: #014c7d;
  border-radius: 5px;
}
.mobile-sidebar a:hover {
  background: #016ba7;
}

@media (min-width: 769px) {
  .mobile-sidebar {
    display: none;
  }
}

/* ================= BOX ICON ================= */  
.prediksi-box {
  background: linear-gradient(to bottom, rgb(18, 140, 222), rgb(0, 30, 60));
  color: white;
  border: 2px solid deepskyblue;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prediksi-box:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}
.prediksi-header {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.prediksi-icon {
  width: 450px;
  height: 99px;
  margin-right: 8px;
}
.prediksi-title {
  font-weight: bold;
  font-size: 16px;
  color: #fff700;
}
.prediksi-content {
  background: #025370;
  border-radius: 5px;
  padding: 5px 10px;
  margin-bottom: 8px;
}
.prediksi-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
}

.progress-bar {
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 25px;
  margin-top: 5px;
}
.progress-fill {
  background: repeating-linear-gradient(
    65deg,
    rgba(40, 167, 69, 0.7) 0 12px,
    rgba(33, 136, 56, 0.7) 12px 24px
  );
  background-size: 24px 24px;
  animation: moveStripe 5s linear infinite;
  color: #fff;
  text-align: center;
  line-height: 25px;
  font-weight: bold;
  font-size: 14px;
  transition: width 0.5s ease;
}
@keyframes moveStripe {
  0% { background-position: 0 0; }
  100% { background-position: 24px 0; }
}

.prediksi-button {
  display: block;
  background: #fbff03;
  color: #000;
  text-align: center;
  padding: 6px 0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

/* ================= HEADINGS & TEXT ================= */
h1, h2, h3 {
  color: yellow;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
}
p {
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}
.white-heading {
  color: white;
}
.content {
  flex: 1;
  padding: 20px;
  box-sizing: border-box;
}

/* ================= BANNER ================= */
.banner-ads, .banner-bawah {
  text-align: center;
  margin: 10px auto;
  max-width: 100%;
}
.banner-ads img, .banner-bawah img {
  display: inline-block;
  height: 60px;
  max-width: 90%;
  border-radius: 12px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.banner-ads img:hover, .banner-bawah img:hover {
  transform: scale(1.03);
}

/* ================= FOOTER ================= */
footer {
  color: white;
  text-align: center;
  padding: 10px 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .prediksi-box {
    margin: 12px auto;
    padding: 10px;
  }

  .prediksi-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .prediksi-header img.prediksi-icon {
    width: 60px;
    height: auto;
  }

  .prediksi-title {
    flex: 1;
    font-size: 14px;
    color: #fff700;
    font-weight: bold;
    text-align: left;
  }

  .prediksi-content {
    font-size: 12px;
    color: yellow;
    padding: 6px;
    line-height: 1.4;
    margin-top: 5px;
  }

  .progress-bar {
    height: 16px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 6px;
  }

  .progress-fill {
    font-size: 11px;
    line-height: 16px;
  }

  .prediksi-button {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 8px 0;
    font-size: 14px;
    background: #fbff03;
    color: #000;
    border-radius: 5px;
    font-weight: bold;
  }
  .mobile-toggle {
    display: block !important;
    position: relative;
    z-index: 9999;
    font-size: 24px;
    padding: 8px;
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
  }
  .nav-buttons {
    display: none !important;
  }
}