/* MonadWatch Custom Styles */
@layer base {
  body {
    background-color: #0B0814;
    color: #F8FAFC;
  }
}

/* Glassmorphism Cards */
.card {
  background: rgba(19, 14, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.4), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.card:hover {
  box-shadow: 0 8px 32px -1px rgba(131, 110, 249, 0.12), inset 0 1px 0 0 rgba(131, 110, 249, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B0814;
}
::-webkit-scrollbar-thumb {
  background: rgba(131, 110, 249, 0.25);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(131, 110, 249, 0.5);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.custom-scroll::-webkit-scrollbar {
  width: 5px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: rgba(11, 8, 20, 0.5);
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(131, 110, 249, 0.4);
  border-radius: 9999px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(131, 110, 249, 0.7);
}

/* Filter Dropdown Popover Elevation */
#filter-dropdown-menu,
#dashboard-omni-suggestions {
  z-index: 9999 !important;
  background-color: #140D2A !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 35px rgba(131, 110, 249, 0.3) !important;
}

/* Smooth Tab Pane Transition */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  will-change: opacity, transform;
}

.tab-pane.active {
  display: block;
  animation: tabPaneFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabPaneFadeIn {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tabs & Focus Reset (Eliminates white border/outline flash completely) */
.tab-btn,
.tab-btn:focus,
.tab-btn:focus-visible,
.tab-btn:active,
.tab-btn:visited {
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
  border: 1px solid transparent !important;
}

.tab-btn {
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background-color: rgba(131, 110, 249, 0.18) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(131, 110, 249, 0.45) !important;
  box-shadow: 0 0 18px rgba(131, 110, 249, 0.25) !important;
}

.tab-btn.active:focus,
.tab-btn.active:focus-visible {
  outline: none !important;
  border: 1px solid rgba(131, 110, 249, 0.45) !important;
  box-shadow: 0 0 18px rgba(131, 110, 249, 0.25) !important;
}

/* Glowing Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(131, 110, 249, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(131, 110, 249, 0.7);
  }
}

.glow-pulsing {
  animation: pulseGlow 2.5s infinite;
}

/* Loading Bar Animation */
@keyframes progressIndeterminate {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-progress {
  animation: progressIndeterminate 1.5s infinite linear;
}

/* Ensure modal logo never squishes or distorts */
#modal-logo-container {
  flex-shrink: 0 !important;
}

#modal-logo-container img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

/* ========================================== */
/* 3D INTERACTIVE GLOBE STYLES (Image 3 Style) */
/* ========================================== */
#monad-globe {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#monad-globe:active {
  cursor: grabbing;
}

/* 3D Node Marker Pins */
.globe-node-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.globe-node-pin:hover {
  transform: translate(-50%, -50%) scale(1.4);
  z-index: 1000 !important;
}

/* Circular Avatar Pin for Active Consensus Nodes */
.globe-node-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #17102B;
  border: 1.5px solid #836EF9;
  box-shadow: 0 0 12px rgba(131, 110, 249, 0.7);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.globe-node-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5px;
  border-radius: 50%;
}

/* Pulsating Outer Radar Rings (Image 3) */
.globe-node-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(131, 110, 249, 0.55);
  animation: globeRadarRipple 2.6s infinite cubic-bezier(0.2, 0.8, 0.4, 1);
  pointer-events: none;
  z-index: 1;
}

@keyframes globeRadarRipple {
  0% {
    transform: scale(0.5);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* Standby Small Node Dot */
.globe-node-standby-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(148, 163, 184, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 6px rgba(148, 163, 184, 0.5);
  transition: transform 0.15s ease;
}

.globe-node-pin:hover .globe-node-standby-dot {
  transform: scale(1.5);
  background-color: #38BDF8;
  border-color: #FFFFFF;
}

/* Validator Detail Diagonal Striped Header (Matching Images 4 & 5) */
.vd-striped-header {
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  ), rgba(19, 14, 38, 0.85);
}

/* Block Details Proposer Alignment */
#bd-proposer-name,
#bd-proposer-name a,
#bd-epoch-info {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* Dashboard Epoch Progress Bar Glow */
#epoch-progress-bar {
  background: linear-gradient(90deg, #7C3AED 0%, #836EF9 100%);
  box-shadow: 0 0 8px rgba(131, 110, 249, 0.45);
}


