/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Global card radius — NO overflow:hidden here ───────────────── */
.service-card,
.bookmark-card,
div[id$="-card"],
div[class*="rounded-lg"] {
    border-radius: 20px !important;
}

/* ── Tab navigation ─────────────────────────────────────────────── */
#tabs ul {
    width: fit-content !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 4px !important;
    border-radius: 50px !important;
    padding: 4px !important;
    background-color: rgba(58, 58, 58, 0.2) !important;
}
#tabs ul li { width: auto !important; flex: 0 0 auto !important; }
#tabs ul li button {
    border-radius: 50px !important;
    padding: 6px 20px !important;
    color: rgba(255,255,255,0.5) !important;
    background-color: transparent !important;
    font-weight: 600 !important;
}
#tabs ul li button[aria-selected="true"] {
    color: #6aabbf !important;
    background-color: rgba(78,59,122,0.15) !important;
    font-weight: 700 !important;
}

/* ── Hide layout-only group labels ─────────────────────────────── */
#Top-services-group .service-group-name,
#Arr-Left-services-group .service-group-name,
#Arr-Right-services-group .service-group-name {
    display: none !important;
}

/* ── Group header labels (visible ones) ─────────────────────────── */
.service-group-name, .bookmark-group-name {
    color: rgba(255,255,255,0.35) !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}

/* ── Group section boxes ────────────────────────────────────────── */
#Media-services-group {
    background: rgba(245, 158, 11, 0.06) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}
#Services-services-group {
    background: rgba(59, 130, 246, 0.06) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}
#Network-services-group {
    background: rgba(6, 182, 212, 0.06) !important;
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}
#DNS-services-group {
    background: rgba(150, 6, 12, 0.06) !important;
    border: 1px solid rgba(220, 38, 38, 0.3) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}
#Arr-Left-services-group,
#Arr-Right-services-group {
    background: rgba(139, 92, 246, 0.06) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}
#Calendar-services-group {
    background: rgba(99, 102, 241, 0.06) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}
#Quick-Links-bookmarks-group {
    background: rgba(148, 163, 184, 0.04) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 16px !important;
    padding: 10px !important;
}

/* ══════════════════════════════════════════════════════════════════
   CARD TINTING — ::before overlay approach
   Cards need position:relative; ::before provides the color layer;
   inner content div sits above at z-index:1.
   ══════════════════════════════════════════════════════════════════ */

/* Step 1: Make cards position:relative so ::before can anchor */
#theborg-card, #wan-ip-card, #diskstation-card,
#plex-card, #tautulli-card, #immich-card,
#portainer-card, #netalertx-card, #uptime-kuma-card,
#omada-controller-card, #speedtest-tracker-card, #cloudflare-card,
#pi-hole-pi5-card, #pi-hole-pihole-card, #pi-hole-pibackup-card,
#radarr-card, #sonarr-card, #transmission-card,
#seerr-card, #cleanuparr-card, #jackett-card, #bazarr-card, #flaresolverr-card {
    position: relative !important;
}

/* Step 2: ::before base — all tinted cards share these properties */
#theborg-card::before, #wan-ip-card::before, #diskstation-card::before,
#plex-card::before, #tautulli-card::before, #immich-card::before,
#portainer-card::before, #netalertx-card::before, #uptime-kuma-card::before,
#omada-controller-card::before, #speedtest-tracker-card::before, #cloudflare-card::before,
#pi-hole-pi5-card::before, #pi-hole-pihole-card::before, #pi-hole-pibackup-card::before,
#radarr-card::before, #sonarr-card::before, #transmission-card::before,
#seerr-card::before, #cleanuparr-card::before, #jackett-card::before,
#bazarr-card::before, #flaresolverr-card::before {
    content: "" !important;
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    right: 2px !important;
    bottom: 6px !important;
    z-index: 0 !important;
    border-radius: 18px !important;
    opacity: 0.35 !important;
    pointer-events: none !important;
}

/* Step 3: Lift card content above the tint layer */
.service-card > div {
    position: relative !important;
    z-index: 1 !important;
}

/* Step 4: Per-card colors */

/* Top row */
#theborg-card::before        { background-color: #3b82f6 !important; }
#wan-ip-card::before         { background-color: #64748b !important; }
#diskstation-card::before    { background-color: #64748b !important; }

/* Media — amber tones */
#plex-card::before           { background-color: #e5a00d !important; }
#tautulli-card::before       { background-color: #d4840f !important; }
#immich-card::before         { background-color: #ea2222 !important; }

/* Services — blue tones */
#portainer-card::before      { background-color: #13BEF9 !important; }
#netalertx-card::before      { background-color: #3eadff !important; }
#uptime-kuma-card::before    { background-color: #61efad !important; }

/* Network — cyan tones */
#omada-controller-card::before  { background-color: #0286c8 !important; }
#speedtest-tracker-card::before { background-color: #06b6d4 !important; }
#cloudflare-card::before        { background-color: #f97316 !important; }

/* DNS — red */
#pi-hole-pi5-card::before,
#pi-hole-pihole-card::before,
#pi-hole-pibackup-card::before  { background-color: #96060c !important; }

/* Arr Stack */
#radarr-card::before         { background-color: #FFC230 !important; }
#sonarr-card::before         { background-color: #25C1FF !important; }
#transmission-card::before   { background-color: #39BA5D !important; }
#seerr-card::before          { background-color: #8b5cf6 !important; }
#cleanuparr-card::before     { background-color: #14b8a6 !important; }
#jackett-card::before        { background-color: #ff3d00 !important; }
#bazarr-card::before         { background-color: #a855f7 !important; }
#flaresolverr-card::before   { background-color: #f59e0b !important; }

/* ── Service tile typography ────────────────────────────────────── */
.service-name {
    color: rgba(245,245,245,0.85) !important;
    font-weight: 600 !important;
}
.service-description {
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
}

/* ── Status / ping badges ───────────────────────────────────────── */
.service-tags {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    z-index: 20 !important;
}
.service-ping .ping-status {
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 8px !important;
    padding: 2px 6px !important;
    height: auto !important;
    width: auto !important;
}
.service-ping .ping-status div {
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}

/* ── Top-bar info widgets ───────────────────────────────────────── */
@media (min-width: 768px) {
    .information-widget-resource,
    .widget-container,
    .information-widget-logo,
    [class*="information-widget-glances"] {
        background-color: rgba(58,58,58,0.2) !important;
        border-radius: 50px !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        height: 42px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 16px !important;
        margin-top: 10px !important;
    }
}

/* Glances resource bars */
.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,
.widget-inner-text,
.resource-icon {
    display: flex !important;
    align-items: center !important;
}

/* ── Bookmark tiles ─────────────────────────────────────────────── */
li.bookmark a {
    border-radius: 20px !important;
    background-color: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    transition: all 0.2s ease-in-out !important;
    margin-bottom: 6px !important;
}
li.bookmark a:hover {
    background-color: rgba(255,255,255,0.10) !important;
    transform: translateY(-2px) !important;
    border-color: rgba(255,255,255,0.2) !important;
}
.bookmark-name {
    color: rgba(245,245,245,0.85) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
.bookmark-description {
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
}