/* custom.css — goes in the same config folder as settings.yaml */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@200;300;400&display=swap");

:root {
  --accent: 129 140 248;            /* indigo-400 */
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --muted: rgba(228, 228, 231, 0.55);
}

/* ---------- Page ---------- */
html, body { font-family: "Inter", system-ui, sans-serif !important; }

/* soft dark vignette so the image never fights the cards */
#background::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5, 6, 12, 0.55) 100%);
}

/* ---------- Top info bar ---------- */
#information-widgets {
  gap: 0.6rem;
  align-items: stretch;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* each widget = a glass pill, same height */
#information-widgets .widget-container {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid var(--border);
  border-radius: 14px !important;
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(18px) saturate(140%);
  min-height: 3.6rem;
  padding: 0.5rem 0.9rem !important;
  display: flex; flex-direction: column; justify-content: center;
}

/* clock (last widget, far right): thin display font, date stacked under it */
#information-widgets .widget-container:last-child,
#information-widgets .widget-container:last-child * {
  font-family: "Outfit", "Inter", sans-serif !important;
  font-weight: 200 !important;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum" 1;
  color: #f8fafc !important;
  text-shadow: 0 2px 18px rgba(129, 140, 248, 0.35);
}
#information-widgets .widget-container:last-child {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  align-items: flex-end;
}

/* search: blend into the pill instead of a grey box */
#information-widgets input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 0.95rem;
}
#information-widgets input:focus { outline: none !important; }
#information-widgets input::placeholder { color: var(--muted); }

/* resource meters: thin accent bars */
#information-widgets .widget-inner-icon svg { opacity: 0.7; }
#information-widgets .widget-inner-text { font-variant-numeric: tabular-nums; }
#information-widgets [class*="h-1"][class*="rounded"] > div {
  background: rgb(var(--accent)) !important;
}
#information-widgets .text-xs.text-center {          /* the "Host" / "Storage" labels */
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted) !important;
}

/* ---------- Group headers ---------- */
.service-group-name {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted) !important;
}
.service-group-icon {
  width: 1.1rem !important;
  height: 1.1rem !important;
  opacity: 0.6;
}
.services-group { margin-bottom: 0.75rem; }

/* ---------- Cards ---------- */
.service-card {
  background: var(--card) !important;
  border: 1px solid var(--border);
  border-radius: 14px !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.6) !important;
  padding: 0.35rem !important;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease !important;
}
.service-card:hover {
  background: var(--card-hover) !important;
  border-color: rgb(var(--accent) / 0.45);
  transform: translateY(-2px);
}

.service-icon img,
.service-icon svg {
  width: 2rem !important;
  height: 2rem !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.service-name {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #f4f4f5 !important;
}
.service-description {
  color: var(--muted) !important;
  font-size: 0.72rem !important;
  margin-top: 1px;
}

/* status dots: a soft glow */
.service-tags { top: 0.65rem !important; right: 0.65rem !important; }
.service-tag > div { filter: drop-shadow(0 0 4px currentColor); }

/* ---------- Widget stat blocks ---------- */
.service-block {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px !important;
  padding: 0.4rem 0.25rem !important;
}
.service-block > div:first-child {        /* the number */
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fafafa;
}
.service-block > div:last-child {         /* the label */
  font-size: 0.62rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted) !important;
  font-weight: 600 !important;
}

/* ---------- Parental Controls iframe ---------- */
li[data-name="Parental Controls"] iframe {
  border-radius: 10px;
  background: transparent;
  margin-top: 0.25rem;
}

/* ---------- Container stats strip (showStats) ---------- */
.service-stats {
  margin-top: 0.15rem;
  border-top: 1px solid var(--border);
}
.service-stats .service-block {
  background: transparent !important;
  border: none;
  padding: 0.25rem 0.1rem !important;
}
.service-stats .service-block > div:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: #d4d4d8;
}

/* ---------- Top bar: give each resources group a little breathing room ---------- */
#information-widgets .information-widget-resource { margin-right: 0.75rem; }

/* ---------- Compact Apps row ---------- */
/* cards with no widget: tighter, icon a touch smaller */
.service-card:not(:has(.service-block)):not(:has(iframe)) {
  padding: 0.15rem 0.35rem !important;
}
.service-card:not(:has(.service-block)):not(:has(iframe)) .service-icon img {
  width: 1.6rem !important;
  height: 1.6rem !important;
}

/* compact cards: centre the status dot vertically on the card */
.service-card:not(:has(.service-block)):not(:has(iframe)) .service-tags {
  top: 0 !important;
  bottom: 0;
  align-items: center;
}
