/* =========================================================
   MI HOMELAB - NEON GLASS THEME
   No requiere cambios en services.yaml ni widgets.yaml.
   ========================================================= */

/* ---------- Fondo / página ---------- */
html, body {
  background: #06111f !important;
}

#background {
  background-position: center center !important;
  background-size: cover !important;
}

#page_wrapper {
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 170, 255, .10), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(150, 70, 255, .08), transparent 30%),
    linear-gradient(180deg, rgba(2, 13, 27, .18), rgba(2, 13, 27, .45)) !important;
}

#inner_wrapper {
  scrollbar-width: thin;
}

/* ---------- Encabezado / widgets superiores ---------- */
#information-widgets {
  padding-top: 12px !important;
  padding-bottom: 14px !important;
  margin-left: 36px !important;
  margin-right: 36px !important;
}

#information-widgets-right {
  align-items: center !important;
}

#widgets-wrap {
  align-items: center !important;
}

/* Barra de búsqueda */
#information-widgets input[type="text"],
#information-widgets input[type="search"] {
  border: 1px solid rgba(90, 190, 255, .28) !important;
  background: rgba(7, 30, 52, .62) !important;
  box-shadow:
    0 0 18px rgba(0, 160, 255, .10),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  border-radius: 14px !important;
}

/* ---------- Contenedor de grupos ---------- */
#layout-groups {
  margin-left: 28px !important;
  margin-right: 28px !important;
  column-gap: 0 !important;
  row-gap: 4px !important;
}

/* Dos columnas visuales:
   1 Principal       2 Infraestructura
   3 Servicios       4 Red
   5 Monitoreo ocupa todo
*/
#layout-groups > .services-group {
  box-sizing: border-box !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 18px !important;
}

#layout-groups > .services-group:nth-child(1),
#layout-groups > .services-group:nth-child(2),
#layout-groups > .services-group:nth-child(3),
#layout-groups > .services-group:nth-child(4) {
  flex: 0 0 50% !important;
  max-width: 50% !important;
}

#layout-groups > .services-group:nth-child(5) {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* ---------- Encabezados de sección ---------- */
#layout-groups > .services-group {
  position: relative !important;
}

#layout-groups > .services-group h2 {
  font-weight: 700 !important;
  letter-spacing: .01em !important;
  text-shadow: 0 0 14px rgba(255,255,255,.10) !important;
  white-space: nowrap !important;
}

/* Línea luminosa debajo del título */
#layout-groups > .services-group h2::after {
  content: "" !important;
  display: block !important;
  height: 3px !important;
  margin-top: 10px !important;
  width: 100% !important;
  border-radius: 99px !important;
}

/* Colores por orden de las etiquetas */
#layout-groups > .services-group:nth-child(1) h2 {
  color: #27a9ff !important;
}
#layout-groups > .services-group:nth-child(1) h2::after {
  background: linear-gradient(90deg, #008cff, #26d9ff) !important;
  box-shadow: 0 0 12px rgba(0,160,255,.70) !important;
}

#layout-groups > .services-group:nth-child(2) h2 {
  color: #b36cff !important;
}
#layout-groups > .services-group:nth-child(2) h2::after {
  background: linear-gradient(90deg, #7b2cff, #d36cff) !important;
  box-shadow: 0 0 12px rgba(150,60,255,.65) !important;
}

#layout-groups > .services-group:nth-child(3) h2 {
  color: #ff42bd !important;
}
#layout-groups > .services-group:nth-child(3) h2::after {
  background: linear-gradient(90deg, #ff1ea8, #ff55d0) !important;
  box-shadow: 0 0 12px rgba(255,40,180,.65) !important;
}

#layout-groups > .services-group:nth-child(4) h2 {
  color: #19e79b !important;
}
#layout-groups > .services-group:nth-child(4) h2::after {
  background: linear-gradient(90deg, #00d88a, #27ffb0) !important;
  box-shadow: 0 0 12px rgba(0,230,150,.65) !important;
}

#layout-groups > .services-group:nth-child(5) h2 {
  color: #ffc21a !important;
}
#layout-groups > .services-group:nth-child(5) h2::after {
  background: linear-gradient(90deg, #ffae00, #ffe34a) !important;
  box-shadow: 0 0 12px rgba(255,190,0,.65) !important;
}

/* ---------- Tarjetas de servicios ---------- */
.service-card {
  min-height: 90px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(110, 210, 255, .18) !important;
  background:
    linear-gradient(135deg, rgba(17, 48, 76, .78), rgba(5, 22, 39, .82)) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255,255,255,.045) !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}

.service-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(80, 205, 255, .55) !important;
  box-shadow:
    0 12px 30px rgba(0,0,0,.30),
    0 0 18px rgba(0,160,255,.16),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

/* Icono un poco más luminoso */
.service-card .service-icon img {
  filter: drop-shadow(0 0 7px rgba(70,190,255,.18)) !important;
  width: 42px !important;
  height: 42px !important;  
}

/* Nombre y descripción */
.service-card .service-name {
  font-weight: 650 !important;
  font-size: 16px !important;
}

.service-card .service-description {
  opacity: .82 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Estado Online */
.service-card .status {
  text-shadow: 0 0 9px rgba(0,255,140,.38) !important;
}

/* ---------- Separación y proporciones ---------- */
.services-list {
  gap: 10px !important;
  margin-bottom: 2px !important;
}

.services-list .service {
  min-width: 0 !important;
}

/* ---------- Footer ---------- */
#footer {
  margin-top: 14px !important;
  padding-left: 36px !important;
  padding-right: 36px !important;
  border-top: 1px solid rgba(110, 200, 255, .20) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  #layout-groups > .services-group:nth-child(n) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  #information-widgets {
    margin-left: 18px !important;
    margin-right: 18px !important;
  }

  #layout-groups {
    margin-left: 10px !important;
    margin-right: 10px !important;
  }
}

/* =========================================================
   SYSTEM MONITOR - COLORES DE WIDGETS SUPERIORES
   CPU / RAM / TEMP / ACTIVO
   ========================================================= */

.information-widget-resource div[style*="width"] {
  background: linear-gradient(
    90deg,
    #4ade80 0%,
    #2dd4bf 40%,
    #3b82f6 75%,
    #b80fde 100%
  ) !important;
  opacity: 0.40 !important;
  border-radius: 10px !important;
}

.information-widget-resource:nth-of-type(1) svg {
  color: #4ade80 !important;
}

.information-widget-resource:nth-of-type(2) svg {
  color: #22d3ee !important;
}

.information-widget-resource:nth-of-type(3) svg {
  color: #ef4444 !important;
}

.information-widget-resource:nth-of-type(4) svg {
  color: #3b82f6 !important;
}

/* Alineación de los widgets superiores */
.information-widget-resource,
.widget-inner-text,
.resource-icon {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.information-widget-resource {
  margin-right: 12px !important;
}

/* ---------- Reloj más grueso ---------- */
#information-widgets-right .information-widget-datetime {
  font-weight: 800 !important;
}

/* ---------- Sol del clima ---------- */
.information-widget-openmeteo svg {
  color: #ffd43b !important;
  filter:
    drop-shadow(0 0 5px rgba(255, 212, 59, .85))
    drop-shadow(0 0 12px rgba(255, 180, 0, .45)) !important;
}

/* ---------- Icono Synology ---------- */
.service-card .service-icon img[src*="synology.png"] {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
}

/* =========================================================
   COLORES - WEB SERVICES
   ========================================================= */
#layout-groups > .services-group:nth-child(6) h2 {
    color: #00ff9d !important;
    white-space: nowrap !important;
}

#layout-groups > .services-group:nth-child(6) h2::after {
    background: #00ff9d !important;
    box-shadow:
        0 0 8px #00ff9d,
        0 0 16px #00ff9d !important;
}

/* =========================================================
   ICONOS DE LAS SECCIONES
   ========================================================= */


/* =========================================================
   ICONOS DE CATEGORIAS — NEON COLORS
   ========================================================= */


}

/* ---------- Fondo nítido: quitar desenfoque global ---------- */
#inner_wrapper {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Desactivar clases de desenfoque del contenedor principal */
#inner_wrapper.backdrop-blur,
#inner_wrapper[class*="backdrop-blur"] {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
}


/* Desenfoque suave del fondo
#inner_wrapper {
  -webkit-backdrop-filter: blur(3px) saturate(100%) brightness(80%) !important;
  backdrop-filter: blur(3px) saturate(100%) brightness(80%) !important;
}
Se Puede Borrar
*/


/* CORRECCION: desenfoque directo de la imagen de fondo */
#background {
  filter: blur(2px) !important;
  transform: scale(1.02) !important;
  transform-origin: center center !important;
}

/* Mantener el contenido del dashboard nítido */
#inner_wrapper {
  filter: none !important;
}


/* Indicadores de estado Homepage */
.rounded-full.h-3.w-3 {
    width: 18px !important;
    height: 18px !important;
}

/* Indicador de estado: esquina superior derecha */
.rounded-full.h-3.w-3 {
    width: 15px !important;
    height: 15px !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10 !important;
}
/* =========================================================
   LOGIN: TEXTOS ENCIMA DEL FORMULARIO
   ========================================================= */
main > div > div.grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
}


/* LOGIN HOMEPAGE - SOLO PANTALLA DE ACCESO */
body:has(form input[name="password"]) main > div {
  width: 100% !important;
  max-width: 390px !important;
  margin: auto !important;
}

body:has(form input[name="password"]) main > div > div {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  padding: 28px !important;
}

body:has(form input[name="password"]) main > div > div > section:first-child {
  text-align: center !important;
}

body:has(form input[name="password"]) main > div > div > section:first-child > div::before {
  content: "👤";
  display: block;
  font-size: 34px;
  margin-bottom: 12px;
}

body:has(form input[name="password"]) main > div > div > section:last-child > div {
  padding: 20px !important;
}


/* Quitar icono de usuario del login */
body:has(form input[name="password"]) main > div > div > section:first-child > div::before {
  content: none !important;
  display: none !important;
}
