/* ======================================================
   MAIN CSS
   ====================================================== */

/* 🧩 Tabs */
.tabs { 
  margin-top: 20px; 
  margin-left: auto;
  margin-right: auto;
  max-width: 420px;
  text-align: center; }
.tab-buttons {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 15px;
}
.tab-buttons button {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: 0.3s;
}
.tab-buttons button.active { background: #333; color: #fff; }
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.3s;
}
.tab-content.active { display: block; opacity: 1; transform: translateY(0); }

/* 🔍 Kotak pencarian */
form.search-box {
  margin: 20px 0;
  position: relative;
}
form.search-box input,
form.search-box button {
  width: 100%;
  max-width: 420px;
  padding: 12px;
  border-radius: 8px;
  box-sizing: border-box;
}
form.search-box input { border: 1px solid #bbb; }
form.search-box input:focus { outline: none; border-color: #888; }
form.search-box button {
  border: none;
  background: #333;
  color: #fff;
  margin-top: 10px;
  cursor: pointer;
}
form.search-box button:hover { background: #555; }

/* 🔍 Kotak saran hasil pencarian */
#suggestions {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #bbb;
  border-top: none;
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  text-align: left;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
#suggestions div {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}
#suggestions div:hover { background: #f2f2f2; }

/* ✨ Highlight lembut */
#suggestions b {
  color: #cc0000;
  background-color: #ffefef;
  font-weight: 600;
  border-radius: 3px;
  padding: 0 2px;
}

/* 🌏 Kotak pembungkus dropdown */
.translate-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 10px auto;
}

/* 📋 <select> yang memakai class .btn */
select.btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
  position: relative;
  background: #fff;
  font-family: inherit;
}

/* 🧭 Panah custom di sebelah kanan */
.translate-box::after {
  content: "▾";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  color: #333;
  pointer-events: none;
}

/* Hapus panah default (untuk IE lawas) */
select.btn::-ms-expand {
  display: none;
}

/* 🧭 Tombol menu pojok kanan atas */
.corner-tab {
  position: fixed;
  top: 30px;
  right: -10px;
  width: 55px;
  height: 55px;
  background: #333;
  color: #fff;
  font-size: 28px;
  border-radius: 30px 0 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10000;
  transition: transform 0.3s, opacity 0.3s;
}
.corner-tab:hover { background: #555; transform: scale(1.05); }

/* Menu sisi kanan */
.corner-menu {
  position: fixed;
  top: 0;
  right: -180px;
  width: 180px;
  height: 100%;
  background: rgba(255,255,255,0.95);
  box-shadow: -3px 0 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  transition: right 0.3s ease;
  z-index: 9999;
}
.corner-menu.show { right: 0; }
.corner-menu a {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  text-decoration: none;
  color: #222;
}
.corner-menu a:hover { background: rgba(0,0,0,0.05); }

.theme-switcher {
  width: 170px;
  margin: 15px 15px 30px 15px;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 6px;
  background: #f8f8f8;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}

.theme-switcher:hover {
  background: #eee;
}

/* 💬 Tombol WhatsApp */
.wa-sticky {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 9999;
  background: #25D366;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: 0.3s;
}
.wa-sticky img { width: 30px; height: 30px; }
.wa-sticky:hover { background: #1ebe5b; transform: scale(1.05); }
@media (min-width: 768px) { .wa-sticky { display: none; } }