/* NOC Agent — estilos complementares (Tailwind via CDN cobre o resto). */

.status-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  margin-right: 0.5rem;
}
.status-ok      { background-color: #22c55e; box-shadow: 0 0 6px #22c55e; }
.status-warn    { background-color: #eab308; box-shadow: 0 0 6px #eab308; }
.status-down    { background-color: #ef4444; box-shadow: 0 0 6px #ef4444; }
.status-unknown { background-color: #6b7280; }

.card {
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.1s ease, border-color 0.1s ease;
}
.card:hover { border-color: #60a5fa; transform: translateY(-2px); }

@keyframes card-down-pulse {
  0% {
    background-color: rgba(127, 29, 29, 0.55);
    border-color: rgba(220, 38, 38, 0.85);
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.0);
  }
  50% {
    background-color: rgba(153, 27, 27, 0.85);
    border-color: rgba(248, 113, 113, 1);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.55);
  }
  100% {
    background-color: rgba(127, 29, 29, 0.55);
    border-color: rgba(220, 38, 38, 0.85);
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.0);
  }
}

.card-down-blink {
  animation: card-down-pulse 1.15s ease-in-out infinite;
}

.internet-gauge-shell {
  position: relative;
}

.internet-gauge-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 7, 18, 0.72);
  color: #d1d5db;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.internet-mini-bar-track {
  width: 100%;
  height: 0.5rem;
  border-radius: 9999px;
  background: #27272a;
  overflow: hidden;
}

.internet-mini-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 9999px;
  background: #71717a;
  transition: width 800ms ease-out, background-color 800ms ease-out;
}

.theme-loomy {
  color: #e5e7eb;
}

.loomy-grid-bg {
  background:
    radial-gradient(circle at 10% 8%, rgba(132, 204, 22, 0.16), transparent 24%),
    radial-gradient(circle at 86% 78%, rgba(132, 204, 22, 0.12), transparent 20%),
    linear-gradient(180deg, #090f10 0%, #0b1116 100%);
  position: relative;
}

.loomy-grid-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(132, 204, 22, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 204, 22, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.loomy-orb {
  position: fixed;
  border-radius: 9999px;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.loomy-orb-left {
  width: 260px;
  height: 260px;
  left: -60px;
  top: -50px;
  background: rgba(132, 204, 22, 0.2);
}

.loomy-orb-right {
  width: 220px;
  height: 220px;
  right: -40px;
  bottom: -40px;
  background: rgba(132, 204, 22, 0.14);
}

.loomy-login-card {
  background: linear-gradient(165deg, rgba(10, 23, 31, 0.95), rgba(12, 18, 30, 0.92));
  border: 1px solid rgba(132, 204, 22, 0.46);
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.15), 0 24px 70px rgba(0, 0, 0, 0.55);
}

.loomy-title {
  color: #f4f4f5;
  text-shadow: 0 0 14px rgba(132, 204, 22, 0.22);
}

.loomy-chip {
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
}

.loomy-input {
  background: rgba(13, 25, 36, 0.8);
  border: 1px solid rgba(132, 204, 22, 0.38);
  border-radius: 12px;
  color: #e5e7eb;
}

.loomy-input:focus {
  outline: none;
  border-color: rgba(132, 204, 22, 0.78);
  box-shadow: 0 0 0 1px rgba(132, 204, 22, 0.45);
}

.loomy-btn-primary {
  background: linear-gradient(180deg, #84cc16, #65a30d);
  color: #09120f;
  border-radius: 12px;
  border: 1px solid rgba(132, 204, 22, 0.7);
  box-shadow: 0 8px 25px rgba(101, 163, 13, 0.35);
}

.theme-loomy .card {
  background: rgba(13, 21, 27, 0.88);
  border-color: rgba(132, 204, 22, 0.24);
}

.theme-loomy .card:hover {
  border-color: rgba(132, 204, 22, 0.6);
}

.theme-loomy .bg-gray-800,
.theme-loomy .bg-gray-900 {
  background-color: rgba(10, 18, 22, 0.9) !important;
}

.theme-loomy .border-gray-700,
.theme-loomy .border-gray-800 {
  border-color: rgba(132, 204, 22, 0.22) !important;
}

.theme-loomy .bg-blue-600,
.theme-loomy .bg-blue-700,
.theme-loomy .bg-purple-600,
.theme-loomy .bg-emerald-700 {
  background: linear-gradient(180deg, #84cc16, #65a30d) !important;
  color: #09120f !important;
  border: 1px solid rgba(132, 204, 22, 0.65);
}

.theme-loomy .hover\:bg-blue-500:hover,
.theme-loomy .hover\:bg-blue-600:hover,
.theme-loomy .hover\:bg-purple-500:hover,
.theme-loomy .hover\:bg-emerald-600:hover,
.theme-loomy .hover\:bg-gray-600:hover,
.theme-loomy .hover\:bg-gray-700:hover {
  background: linear-gradient(180deg, #a3e635, #65a30d) !important;
}

/* ---------------- Otimizações para celular ---------------- */
/* Evita rolagem lateral causada pelos orbs decorativos (offsets negativos). */
html, body { overflow-x: hidden; }

@media (max-width: 640px) {
  /* Cards mais compactos, sem o "pulo" de hover (não faz sentido no toque). */
  .card { padding: 0.85rem; border-radius: 0.6rem; }
  .card:hover { transform: none; }

  /* Decoração mais leve numa tela pequena. */
  .loomy-orb-left  { width: 150px; height: 150px; left: -50px; top: -40px; }
  .loomy-orb-right { width: 130px; height: 130px; }
  .loomy-grid-bg::before { background-size: 22px 22px; }

  /* Alvos de toque mais confortáveis. */
  button { min-height: 36px; }

  /* Rolagem horizontal suave onde há tabela/gráfico largo. */
  .overflow-x-auto { -webkit-overflow-scrolling: touch; }
}
