/* =========================================================
   CYBERDYNE SYSTEMS – HOMEPAGE CUSTOM CSS
   ========================================================= */


/* ---------- CYBERDYNE LOGO ---------- */

.information-widget-logo img {
  width: 140px !important;
  height: auto !important;
}


/* ---------- SERVICE CARDS ---------- */

.service-card {
  border: 1px solid rgba(255, 0, 0, 0.18) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

.service-card:hover {
  border-color: rgba(255, 0, 0, 0.75) !important;
  box-shadow:
    0 0 12px rgba(255, 0, 0, 0.16),
    inset 0 0 12px rgba(255, 0, 0, 0.04) !important;
  transform: translateY(-1px);
}


/* ---------- GROUP HEADINGS ---------- */

.service-group-name {
  color: #d8dce2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-left: 3px solid rgba(255, 0, 0, 0.75);
  padding-left: 10px;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.12);
}


/* ---------- TOP WIDGETS ---------- */

.widget-container {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 0, 0, 0.12) !important;
}


/* ---------- SEARCH ---------- */

input[type="text"],
input[type="search"] {
  border-color: rgba(255, 0, 0, 0.22) !important;
}

input[type="text"]:focus,
input[type="search"]:focus {
  border-color: rgba(255, 0, 0, 0.65) !important;
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.12) !important;
}


/* ---------- SERVICE STATUS ---------- */

.service-ping .ping-status {
  text-shadow: 0 0 5px rgba(0, 255, 100, 0.25);
}


/* ---------- BOOKMARKS ---------- */

.bookmark-icon,
.bookmark-text {
  background-color: rgba(255, 255, 255, 0.055) !important;
  border-top: 1px solid rgba(255, 0, 0, 0.22) !important;
  border-bottom: 1px solid rgba(255, 0, 0, 0.22) !important;
}

.bookmark-icon {
  border-left: 1px solid rgba(255, 0, 0, 0.22) !important;
  border-radius: 14px 0 0 14px !important;
}

.bookmark-text {
  border-right: 1px solid rgba(255, 0, 0, 0.22) !important;
  border-radius: 0 14px 14px 0 !important;
}

.bookmark-icon:hover,
.bookmark-text:hover {
  background-color: rgba(255, 0, 0, 0.10) !important;
}

.bookmark-group-name {
  color: #d8dce2 !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}

/* ---------- CYBERDYNE ACCENT CARDS ---------- */

/* Proxmox */

li[data-name="Proxmox"] .service-card {
  background:
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.075),
      transparent 55%
    ) !important;
}

/* Pi-hole */

li[data-name="Pi-hole"] .service-card {
  background:
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.055),
      transparent 55%
    ) !important;
}

/* Home Assistant */

li[data-name="Home Assistant"] .service-card {
  background:
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.045),
      transparent 55%
    ) !important;
}


/* ---------- CARD SHAPE ---------- */

.service-card,
.bookmark-card,
.group-header {
  border-radius: 20px !important;
  overflow: hidden !important;
}


/* ---------- SUBTLE CYBERDYNE GLOW ---------- */

#proxmox-card,
#pihole-card,
#homeassistant-card {
  box-shadow:
    inset 0 0 18px rgba(255, 0, 0, 0.025) !important;
}


/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

  .service-group-name {
    padding-left: 8px;
  }

  .service-card {
    border-radius: 12px !important;
  }

}
/* =========================================================
   CYBERDYNE – CARD INNER GLOW
   ========================================================= */

li[data-name="Pi-hole"] .service-card,
li[data-name="Proxmox"] .service-card,
li[data-name="Home Assistant"] .service-card,
li[data-name="Nginx Proxy Manager"] .service-card,
li[data-name="Paperless-ngx"] .service-card,
li[data-name="Homebridge"] .service-card,
li[data-name="Speedport"] .service-card,
li[data-name="Helper Scripts"] .service-card,
li[data-name="Icons für Dashboards"] .service-card {
  position: relative !important;
  background-color: transparent !important;
}

li[data-name="Pi-hole"] .service-card::before,
li[data-name="Proxmox"] .service-card::before,
li[data-name="Home Assistant"] .service-card::before,
li[data-name="Nginx Proxy Manager"] .service-card::before,
li[data-name="Paperless-ngx"] .service-card::before,
li[data-name="Homebridge"] .service-card::before,
li[data-name="Speedport"] .service-card::before,
li[data-name="Helper Scripts"] .service-card::before,
li[data-name="Icons für Dashboards"] .service-card::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 6px;
  z-index: 0;
  border-radius: 14px !important;
  background: rgba(255, 0, 0, 0.25);
  opacity: 1;
  pointer-events: none;
}

.service-card > div {
  position: relative;
  z-index: 1;
}
/* =========================================================
   CYBERDYNE – PRIMARY SYSTEM
   ========================================================= */

li[data-name="Proxmox"] .service-card {
  background:
    linear-gradient(
      105deg,
      rgba(255, 0, 0, 0.28),
      rgba(255, 0, 0, 0.08) 55%,
      transparent
    ) !important;

  box-shadow:
    inset 0 0 22px rgba(255, 0, 0, 0.08),
    0 0 10px rgba(255, 0, 0, 0.06) !important;
}

li[data-name="Proxmox"] .service-card:hover {
  box-shadow:
    inset 0 0 25px rgba(255, 0, 0, 0.12),
    0 0 16px rgba(255, 0, 0, 0.16) !important;
}
/* =========================================================
   CYBERDYNE – SYSTEM RESOURCES
   ========================================================= */

.information-widget-resource {
  border-left: 2px solid rgba(255, 0, 0, 0.55) !important;
  padding-left: 10px !important;
}

.information-widget-resource div[style*="width"] {
  background: rgba(255, 0, 0, 0.55) !important;
}

.information-widget-resource svg {
  filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.25));
}
/* CYBERDYNE – Ressourcen */
.information-widget-resource .resource-usage {
  background: rgba(255, 0, 0, 0.18) !important;
}

.information-widget-resource .resource-usage > div {
  background: rgba(255, 0, 0, 0.55) !important;
}

.information-widget-resource .resource-icon {
  color: rgba(255, 0, 0, 0.65) !important;
}
/* ---------- BACKGROUND – DARK MODE ONLY ---------- */

html.scheme-light #background {
  display: none !important;
}

