/* ========== EMERGENCY BANNER ========== */
.emergency-banner {
  background: linear-gradient(90deg, #d9534f, #c9302c);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.emergency-icon {
  font-size: 2rem;
  margin-right: 15px;
  animation: pulse 1.5s infinite;
}
.emergency-call-btn {
  background-color: #fff;
  color: #d9534f;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 50px;
  transition: 0.3s ease-in-out;
  margin: 0 1rem;
  display: inline-block;
}
.emergency-call-btn:hover {
  background-color: #f5f5f5;
  color: #c9302c;
  text-decoration: none;
}
.emergency-desc {
  font-size: 0.9rem;
  color: #f8f9fa;
  margin-top: 10px;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ========== THUMBNAIL NAV ========== */
.tab-thumbnail-nav img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px;
  border: 3px solid transparent;
  transition: 0.3s;
  cursor: pointer;
}
.tab-thumbnail-nav img.active {
  border-color: #28a745;
  transform: scale(1.05);
}

/* ========== DIGITAL BG ANIMASI ========== */
.digital-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, #eefef0, #dff6e6);
  background-size: 200% 200%;
  animation: digitalFlow 15s ease infinite;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}
@keyframes digitalFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========== PETUGAS DIGITAL BOX ========== */
.petugas-digital {
  width: 260px;
  height: 260px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,128,0,0.15);
  padding: 30px;
  z-index: 1;
}
.icon-petugas {
  font-size: 50px;
  color: #28a745;
  animation: float 3s ease-in-out infinite;
  display: block;
  margin-bottom: 20px;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ========== SIGNAL ANIMASI ========== */
.signal-bars {
  width: 100%;
  height: 6px;
  margin-top: 8px;
  background: linear-gradient(90deg, #28a745 30%, transparent 0%) repeat-x;
  background-size: 16px 100%;
  animation: scanbar 1.2s linear infinite;
}
@keyframes scanbar {
  0% { background-position: 0 0; }
  100% { background-position: 16px 0; }
}
.data-pulse {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #28a745;
  border-radius: 50%;
  animation: ripple 2.5s infinite;
  opacity: 0.5;
}
@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.5; }
}

/* ========== TAB SECTION GREEN ========== */
.tab-section-green {
  background-color: #00b894;
  width: 100%;
  color: white;
  position: relative;
  padding-bottom: 0;
  margin-bottom: 0;
}
.tab-icon-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  min-width: 100px;
  padding: 6px 12px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}
.tab-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.tab-icon {
  font-size: 34px;
  color: white;
  transition: transform 0.3s, color 0.3s;
}
.tab-icon.active {
  color: #ffd700;
  transform: scale(1.2);
}
.tab-label {
  font-size: 16px;
  margin-top: 5px;
  font-weight: 500;
}
.tab-connector {
  width: 80px;
  height: 4px;
  background-color: #fff;
  margin: 10px auto 0;
  border-radius: 2px;
}
.tab-content-box {
  background: transparent;
  padding: 10px 5px;
  margin: 0;
  border-radius: 0;
  color: white;
  text-align: center;
  font-size: 18px;
}

/* ICON ANIMATED */
.icon-animated i.animated-icon {
  animation: pulseIcon 2s infinite ease-in-out;
}
@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}
