/* =========================================
   VIEW 4: HALAMAN BOSS BATTLE (WORLD BOSS)
   ========================================= */
.boss-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b161c 0%, #081116 100%);
  overflow-y: auto;
  overflow-x: hidden;
}

.boss-view::-webkit-scrollbar { width: 4px; }
.boss-view::-webkit-scrollbar-thumb { background: #2c424d; border-radius: 4px; }

/* Banner Atas Bertuliskan BOSS */
.boss-hero-banner {
  height: 58px;
  background: linear-gradient(90deg, #1e1b18 0%, #7c2d12 45%, #d97706 80%, #fde047 100%);
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 12px 6px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.boss-hero-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000, 0 3px 6px #000;
  z-index: 2;
}

.boss-hero-art {
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  z-index: 1;
}

/* 3 Tab Sub-Menu: World Boss | Normal Boss | Summon Boss */
.boss-tabs-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 23, 32, 0.95);
  border-bottom: 1px solid #334155;
  flex-shrink: 0;
}

.boss-tab {
  padding: 9px 4px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.boss-tab.active {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: inset 0 2px 0 #94a3b8;
}

/* Kontainer Konten World Boss */
.wb-content {
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tombol Tipe ALL (Full Width) */
.wb-type-btn {
  border-radius: 7px;
  border: 1.5px solid #94a3b8;
  background: linear-gradient(180deg, #4b5563 0%, #374151 50%, #1f2937 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 8px;
  text-align: center;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.55);
  transition: transform 0.1s;
}

.wb-type-btn:active {
  transform: scale(0.97);
}

/* State Tombol Tipe Aktif (Gradasi Biru Terang seperti Gambar Referensi) */
.wb-type-btn.active {
  border: 2px solid #ffffff;
  background: linear-gradient(180deg, #f8fafc 0%, #bae6fd 45%, #7dd3fc 100%);
  color: #ffffff;
  text-shadow: -1px -1px 0 #0369a1, 1px -1px 0 #0369a1, -1px 1px 0 #0369a1, 1px 1px 0 #0369a1, 0 2px 4px rgba(0,0,0,0.6);
  box-shadow: 0 0 10px rgba(125, 211, 252, 0.5);
}

/* 3 Tombol Berbasis Level Sejajar */
.wb-level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wb-level-grid .wb-type-btn {
  font-size: 12.5px;
  padding: 10px 4px;
}

/* Teks Deskripsi World Boss */
.wb-desc-box {
  font-size: 11.5px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.45;
  margin-top: 2px;
}

/* Label Hijau "Current World Boss :" & "Previous World Boss :" */
.wb-section-label {
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wb-test-kill-btn {
  background: #7f1d1d;
  border: 1px solid #f87171;
  color: #fecaca;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
}

/* Kartu Status World Boss */
.wb-boss-card {
  background: rgba(15, 25, 34, 0.88);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.wb-avatar-frame {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: radial-gradient(circle, #334155 15%, #0f172a 90%);
  border: 2.5px solid #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
}

.wb-avatar-frame.prev {
  border-color: #d97706;
  background: radial-gradient(circle, #450a0a 15%, #090d16 90%);
}

.wb-boss-mid {
  flex: 1;
  min-width: 0;
}

.wb-boss-name {
  font-size: 14px;
  font-weight: 800;
  color: #facc15;
  margin-bottom: 6px;
}

.wb-hp-track {
  width: 100%;
  height: 12px;
  background: #05080c;
  border: 1px solid #334155;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.wb-hp-fill {
  height: 100%;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 60%, #9a3412 100%);
  border-radius: 5px;
  transition: width 0.25s ease-out;
}

.wb-hp-text {
  font-size: 9.5px;
  color: #cbd5e1;
  margin-top: 3px;
  font-weight: 700;
}

.wb-action-btn {
  min-width: 74px;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.wb-action-btn.waiting {
  background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
  border: 1px solid #6b7280;
  color: #111827;
  cursor: default;
}

.wb-action-btn.attack {
  background: linear-gradient(180deg, #ef4444 0%, #991b1b 100%);
  border: 1.5px solid #fca5a5;
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}
.wb-action-btn.attack:active {
  transform: scale(0.95);
}

.wb-action-btn.results {
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 100%);
  border: 1.5px solid #ffffff;
  color: #0f172a;
}

/* Timer di Bawah Kartu */
.wb-timer-row {
  text-align: right;
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
  margin-top: -4px;
}