/* ============================================================
   HOMEPAGE (gethomepage.dev) — TRUE GLASS v6
   Seletores 100% confirmados via DevTools
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700&display=swap');

* {
  font-family: 'Exo 2', sans-serif !important;
}

/* ============================================================
   1. WALLPAPER FORÇADO — garante fundo visível em qualquer host
   ============================================================ */
html,
body,
body > div,
#__next,
#__next > div {
  background-color: transparent !important;
}

body {
  background:
    linear-gradient(135deg, rgba(12, 16, 30, 0.86), rgba(18, 10, 36, 0.78)),
    url('/images/background.jpg?v=20260512a') center center / cover no-repeat !important;
  background-attachment: scroll !important;
}

/* ============================================================
   2. OVERLAY CINZA — div.fixed.inset-0.bg-gray-500.opacity-50
   Usando visibility+opacity em vez de display para maior especificidade
   ============================================================ */
html body div.fixed.inset-0.bg-gray-500 {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ============================================================
   3. CARDS — seletor .service-card confirmado
   ============================================================ */
.service-card {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04) !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  border-top-color: rgba(255, 255, 255, 0.40) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-2px) !important;
}

/* Internos do card — versão segura */
.service-card > div,
.service-card > a,
.service-card .content {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* NÃO destruir status widgets */
.service-card [class*="bg-"],
.service-card [class*="theme-"],
.service-card [class*="hover:bg-"],
.service-card [class*="status"],
.service-card [class*="ping"],
.service-card [class*="indicator"] {
  background: revert !important;
}

/* ============================================================
   3. BARRA SUPERIOR / SEARCH — confirmado: flex.flex-row...dark:bg-white/5
   ============================================================ */
.dark\:bg-white\/5 {
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 14px !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* Tabs UL — confirmado: UL.sm:flex.rounded-md.bg-theme-100/20.dark:bg-white/5 */
ul.dark\:bg-white\/5 {
  border-radius: 14px !important;
}

/* ============================================================
   4. TIPOGRAFIA
   ============================================================ */
.text-theme-700,
.dark\:text-theme-200 {
  color: rgba(235, 240, 255, 0.96) !important;
  font-weight: 600 !important;
}

.text-theme-500 {
  color: rgba(210, 220, 245, 0.62) !important;
}

.dark\:text-white\/30,
.dark\:text-white\/25 {
  color: rgba(200, 215, 240, 0.52) !important;
  font-size: 0.68rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ============================================================
   5. INPUT DE BUSCA
   ============================================================ */
input[type="search"],
input[type="text"] {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(235, 240, 255, 0.95) !important;
}

input::placeholder {
  color: rgba(200, 210, 235, 0.40) !important;
}

/* ============================================================
   6. TAB SWITCHER (custom.js)
   ============================================================ */
#hp-tab-switcher {
  display: flex !important;
  gap: 4px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 50px !important;
  padding: 5px 8px !important;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  z-index: 9999 !important;
}

.hp-tab-button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: rgba(210, 220, 245, 0.55) !important;
  font-family: 'Exo 2', sans-serif !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.06em !important;
  padding: 6px 24px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: background 0.2s ease, color 0.2s ease !important;
}

.hp-tab-button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(235, 240, 255, 0.95) !important;
}

.hp-tab-button.is-active {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(235, 240, 255, 0.95) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

/* ============================================================
   7. TRANSIÇÃO ENTRE TABS
   ============================================================ */
main.hp-view-switching {
  opacity: 0;
  transition: opacity 0.19s ease !important;
}

main:not(.hp-view-switching) {
  opacity: 1;
  transition: opacity 0.19s ease !important;
}

/* ============================================================
   8. SEPARADORES
   ============================================================ */
.divide-white\/5 > * + * {
  border-color: rgba(255, 255, 255, 0.07) !important;
 
}

/* ============================================================
   FIX — Status indicators visíveis nos service cards
   ============================================================ */

.service-card [class*="status"],
.service-card [class*="ping"],
.service-card [class*="indicator"],
.service-card [class*="dot"],
.service-card [class*="health"],
.service-card [class*="online"],
.service-card [class*="offline"],
.service-card [class*="rounded-full"] {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  background: revert !important;
  border: revert !important;
  box-shadow: revert !important;
}

/* ============================================================
   FIX — bolinha/status do Homepage
   ============================================================ */

.service-card div.w-auto.text-center.overflow-hidden.p-4 {
  background: transparent !important;
}

/* A bolinha REAL */
.service-card div.w-auto.text-center.overflow-hidden.p-4 > div {
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
  border-radius: 999px !important;

  background: #00ff88 !important;
  opacity: 1 !important;
  visibility: visible !important;

  box-shadow:
    0 0 10px rgba(0, 255, 136, 0.95),
    0 0 20px rgba(0, 255, 136, 0.55) !important;
}

/* ============================================================
   BOTÃO "G" — glass style
   ============================================================ */

button[id*="headlessui-listbox-button"] {
  background: rgba(255, 255, 255, 0.05) !important;

  backdrop-filter: blur(12px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;

  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.28) !important;

  border-radius: 12px !important;

  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease !important;
}

/* Hover */
button[id*="headlessui-listbox-button"]:hover {
  background: rgba(255, 255, 255, 0.09) !important;

  border-color: rgba(255, 255, 255, 0.24) !important;

  transform: translateY(-1px) !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
}

/* FIX — campo de busca visível */
form.information-widget-form input[type="search"],
form.information-widget-form input[type="text"] {
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-top-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 18px rgba(0, 0, 0, 0.22) !important;
  border-radius: 12px !important;
  height: 34px !important;
  padding: 0 48px 0 14px !important;
  color: rgba(235, 240, 255, 0.95) !important;
}

form.information-widget-form input::placeholder {
  color: rgba(235, 240, 255, 0.48) !important;
}

form.information-widget-form button {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}