/* =============================================================================
   Offline Banner (tg-offline-banner) — issue #552
   Used by TraderGenie.Web/wwwroot/js/utils/offline-banner.js
   Shown when window receives an `offline` event; hidden on `online`.
   ============================================================================= */

.tg-offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100001; /* above toasts (100000) so users see it during a network blip */
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: rgba(15, 18, 30, 0.97);
  border-bottom: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-size: 0.875rem;
  /* Slide-in animation */
  transform: translateY(-100%);
  transition: transform 0.18s ease;
}

.tg-offline-banner.is-visible {
  transform: translateY(0);
}

.tg-offline-banner__indicator {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 6px var(--warning);
}

.tg-offline-banner__message {
  flex: 1;
  line-height: 1.4;
}

.tg-offline-banner__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tg-offline-banner__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

@media (max-width: 768px) {
  .tg-offline-banner {
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
  }

  .tg-offline-banner__close {
    width: 32px;
    height: 32px;
  }
}
