/* ==========================================================================
   IDENTIDADE VISUAL HSOL / 4TiNET (THEME SYSTEM)
   Cores Primárias: Laranja HSOL (#F05A22 / #FF5722), Grafite Escuro (#0D0F14)
   ========================================================================== */

/* Ocultar completamente rodape Powered by Gatus e icone do GitHub */
footer,
#social,
[id="social"],
a[href*="gatus.io"],
a[href*="github.com/TwiN/gatus"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Rodape corporativo institucional HSOL */
body::after {
  content: "© 2026 HSOL / 4TiNET. Todos os direitos reservados.";
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #8A92A6;
  padding: 36px 16px 28px;
  border-top: 1px solid rgba(240, 90, 34, 0.15);
  margin-top: 48px;
}

/* Ajuste do Logo no Header com suporte perfeito aos Modos Claro e Escuro */
header .w-12.h-12 {
  width: auto !important;
  height: 44px !important;
  min-width: 44px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease-in-out !important;
}

header .w-12.h-12 img {
  height: 38px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  transition: filter 0.3s ease;
}

/* Garante visibilidade perfeita do logotipo no MODO CLARO (Light Mode) */
html:not(.dark) header .w-12.h-12,
body:not(.dark) header .w-12.h-12 {
  background: #12151C !important;
  padding: 5px 14px !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(240, 90, 34, 0.25) !important;
}

/* Ocultar texto redundante do topo ao lado do logo */
header h1,
header .text-2xl {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   CUSTOMIZAÇÃO DO TEMA ESCURO (DARK MODE - PALETA HSOL GRAFITE & LARANJA)
   ========================================================================== */
html.dark,
body.dark,
.dark {
  background-color: #0D0F14 !important;
  color: #E2E8F0 !important;
}

.dark header {
  background-color: #12151C !important;
  border-bottom: 1px solid rgba(240, 90, 34, 0.25) !important;
}

/* Botoes de navegacao no header com destaque Laranja HSOL */
header a,
header button {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

html.dark header a {
  background-color: #181C26 !important;
  color: #D1D5DB !important;
  border: 1px solid #262D3D !important;
}

html.dark header a:hover {
  background-color: #F05A22 !important;
  color: #FFFFFF !important;
  border-color: #F05A22 !important;
  box-shadow: 0 0 14px rgba(240, 90, 34, 0.45) !important;
  transform: translateY(-1px);
}

html:not(.dark) header a {
  background-color: #F3F4F6 !important;
  color: #374151 !important;
  border: 1px solid #E5E7EB !important;
}

html:not(.dark) header a:hover {
  background-color: #F05A22 !important;
  color: #FFFFFF !important;
  border-color: #F05A22 !important;
  box-shadow: 0 2px 8px rgba(240, 90, 34, 0.3) !important;
}

/* Cards de Grupos e Endpoints no Modo Escuro com tom Grafite HSOL */
.dark .bg-gray-900,
.dark .bg-gray-800,
.dark [class*="bg-gray-900"],
.dark [class*="bg-gray-800"] {
  background-color: #141822 !important;
  border-color: #222836 !important;
}

.dark [class*="hover:bg-gray-700"]:hover,
.dark [class*="hover:bg-gray-800"]:hover {
  background-color: #1A1F2D !important;
}

/* Realces de foco e selecao no Laranja HSOL */
input:focus,
select:focus {
  border-color: #F05A22 !important;
  box-shadow: 0 0 0 2px rgba(240, 90, 34, 0.25) !important;
  outline: none !important;
}
