/* =========================================
   VIEW 5: HALAMAN QUEST (GRASSLAND, DLL)
   ========================================= */
.quest-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b161c 0%, #071015 100%);
  overflow-y: auto;
  overflow-x: hidden;
}

.quest-view::-webkit-scrollbar { width: 4px; }
.quest-view::-webkit-scrollbar-thumb { background: #2c424d; border-radius: 4px; }

.quest-hero-banner {
  height: 92px;
  background: 
    linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.45) 100%),
    linear-gradient(135deg, #fde047 0%, #86efac 45%, #3b82f6 100%);
  position: relative;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}

.quest-boss-tracker {
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.quest-boss-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: radial-gradient(circle, #dc2626, #450a0a);
  border: 1.5px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
  position: relative;
}

.quest-boss-plus {
  position: absolute;
  top: -3px;
  left: -3px;
  background: #f59e0b;
  color: #000;
  font-size: 8px;
  font-weight: 900;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quest-boss-bar-wrap {
  width: 155px;
  height: 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #475569;
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 6px;
}

.quest-boss-bar-text {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
  z-index: 2;
}

.quest-hero-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: -1.5px -1.5px 0 #854d0e, 1.5px -1.5px 0 #854d0e, -1.5px 1.5px 0 #854d0e, 1.5px 1.5px 0 #854d0e, 0 3px 6px rgba(0,0,0,0.6);
  z-index: 2;
}

.quest-hero-characters {
  position: absolute;
  right: 10px;
  bottom: 4px;
  font-size: 46px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.45));
  pointer-events: none;
}

.quest-region-nav {
  display: grid;
  grid-template-columns: 36px 1fr 1fr 1fr 36px;
  align-items: center;
  background: #0d131a;
  border-bottom: 1.5px solid #475569;
  padding-top: 4px;
  flex-shrink: 0;
}

.region-arrow-btn {
  text-align: center;
  font-size: 16px;
  color: #e2e8f0;
  cursor: pointer;
  padding: 8px 0;
}
.region-arrow-btn:active { transform: scale(0.88); }

.region-tab-item {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 8px 4px;
  cursor: pointer;
  line-height: 1.15;
  border-radius: 6px 6px 0 0;
}

.region-tab-item.active {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  border-top: 1.5px solid #94a3b8;
  border-left: 1.5px solid #94a3b8;
  border-right: 1.5px solid #94a3b8;
}

.quest-options-panel {
  padding: 10px 12px 6px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px;
  align-items: start;
}

.quest-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #fef08a;
}

.quest-check-row.right-align {
  justify-content: flex-end;
}

.q-checkbox-box {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #0b1116;
  border: 1.5px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #f97316;
  font-weight: 900;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}

.quest-list-container {
  padding: 6px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quest-card {
  background: linear-gradient(180deg, #1b2833 0%, #111b22 100%);
  border: 1.5px solid #3c4f5e;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.55);
}

.quest-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.quest-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
}

.quest-rank-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.quest-rank-text {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.quest-rank-bar {
  width: 110px;
  height: 6px;
  background: #090d12;
  border: 1px solid #475569;
  border-radius: 3px;
  overflow: hidden;
}

.quest-rank-fill {
  height: 100%;
  background: linear-gradient(90deg, #eab308, #facc15);
}

.quest-reward-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.quest-gold-text {
  font-size: 12px;
  font-weight: 800;
  color: #4ade80;
}

.quest-xp-text {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2px;
}

.quest-bonus-xp {
  font-size: 14px;
  font-weight: 900;
  color: #facc15;
  text-shadow: 0 1px 2px #000;
}

.quest-req-badge {
  display: inline-block;
  background: #273440;
  border: 1px solid #475569;
  color: #cbd5e1;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.quest-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.quest-req-items {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quest-energy-cost {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  margin-right: 4px;
}

.q-en-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fde047, #ca8a04);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.quest-mon-req {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.quest-mon-slot {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: radial-gradient(circle, #fef3c7 20%, #d97706 100%);
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Warna Bingkai Slot Monster Syarat Per Elemen (Sesuai Referensi) */
.q-elem-Fire { background: radial-gradient(circle, #fed7aa 20%, #c2410c 100%); border-color: #fdba74; }
.q-elem-Water { background: radial-gradient(circle, #e9d5ff 20%, #7e22ce 100%); border-color: #d8b4fe; }
.q-elem-Air { background: radial-gradient(circle, #e0f2fe 20%, #0284c7 100%); border-color: #bae6fd; }
.q-elem-Earth { background: radial-gradient(circle, #ecfccb 20%, #65a30d 100%); border-color: #d9f99d; }
.q-elem-Dark { background: radial-gradient(circle, #e2e8f0 20%, #475569 100%); border-color: #cbd5e1; }
.q-elem-Holy { background: radial-gradient(circle, #fef9c3 20%, #ca8a04 100%); border-color: #fef08a; }

.quest-mon-qty {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
}

.btn-quest-go {
  width: 78px;
  height: 54px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: linear-gradient(180deg, #b8c2cc 0%, #8e99a4 50%, #6c7782 100%);
  color: #111827;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  transition: transform 0.1s;
}

.btn-quest-go:active {
  transform: scale(0.95);
}