/* Force group header text to white */
.service-group-name,
h2.service-group-name,
.flex.text-theme-800.dark\:text-theme-300.text-xl.font-medium.service-group-name {
    color: #ffffff !important;
}

/* Also target any dark mode specific text */
.dark .service-group-name,
.dark h2.service-group-name {
    color: #ffffff !important;
}

/* Make all group headers white */
#layout-groups h2,
div.services-group h2 {
    color: #ffffff !important;
}

/* --- GLOBAL SCROLLBAR HIDING --- */
::-webkit-scrollbar {
    display: none;
}
 
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
 
/* --- MASTER ROUNDED CORNERS --- */
.service-card, 
.bookmark-card,
.group-header,
div[id$="-card"],
div[id$="-card"] > div,
div[class*="rounded-lg"] {
    border-radius: 25px !important;
    overflow: hidden !important;
    isolation: isolate !important;
}
 
/* --- CARD TINTING SETUP --- */
#sonarr-card, #radarr-card, #bazarr-card, #medialyze-card,
#muxarr-card, #jellyfin-card, #jellystat-card, #jellyseerr-card,
#notifications-card, #upcoming-card,
#beszel-card, #uptime-card,
#proxmox-card, #komodo-card,
#pihole1-card, #qbittorrent-card, #pihole3-card, #immich-card, 
#homeassistant-card, #intel-card, #pangolin-card, #crowdsec-card,
#traefik-card {
    position: relative !important;
    background-color: transparent !important;
}
 
#sonarr-card::before, #radarr-card::before,
#bazarr-card::before, #medialyze-card::before,
#muxarr-card::before, #jellyfin-card::before, 
#jellystat-card::before, #jellyseerr-card::before,
#notifications-card::before, #upcoming-card::before,
#beszel-card::before, #uptime-card::before,
#proxmox-card::before, #komodo-card::before,
#pihole1-card::before, #qbittorrent-card::before, 
#pihole3-card::before, #immich-card::before, 
#homeassistant-card::before, 
#intel-card::before, #pangolin-card::before,
#crowdsec-card::before, #traefik-card::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 6px; 
    z-index: 0;
    border-radius: 23px !important;
    opacity: 0.35;
}
 
/* --- SERVICE COLOR ASSIGNMENTS --- */
#sonarr-card::before                                                      { background-color: #25C1FF !important; }
#radarr-card::before                                                      { background-color: #FFC230 !important; }
#bazzar-card::before                                                      { background-color: #e6e6e6 !important; }
#medialyze-card::before                                                    { background-color: #c5ae45 !important; }
#jellyfin-card::before, #jellystat-card::before, #jellyseerr-card::before { background-color: #AA5CC3 !important; }
#muxarr-card::before                                                        { background-color: #ff7b00 !important; }
#notifications-card::before                                               { background-color: #4ade80 !important; }
#upcoming-card::before                                                    { background-color: #22d3ee !important; }
#beszel-card::before                                                      { background-color: #3eadff !important; }
#uptime-card::before                                                      { background-color: #61efad !important; }
#proxmox-card::before                                                     { background-color: #ff7b00 !important; }
#komodo-card::before                                                      { background-color: #33cc33 !important; }
#pihole1-card::before, #pihole2-card::before                              { background-color: #96060c !important; }
#immich-card::before                                                      { background-color: #ea2222 !important; }
#qbittorrent-card::before                                               { background-color: #28a0cc !important; }
#intel-card::before                                                       { background-color: #3eadff !important; }
#pangolin-card::before                                                    { background-color: #ff7700 !important; }
#crowdsec-card::before                                                    { background-color: #2a2978 !important; }
#traefik-card::before                                                     { background-color: #3fb1db !important; }
 
/* --- STATUS & PING BADGE POSITIONING --- */
.service-card > div {
    position: relative;
    z-index: 1;
}
 
span[class*="status-"], 
div[class*="status-"] {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    z-index: 10 !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    padding: 2px 6px !important;
}
 
.service-tags {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
    top: 10px !important;
    right: 12px !important;
    position: absolute !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;
    background-image: none !important;
}
 
.service-ping .ping-status div {
    font-size: 9px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    line-height: 1.2 !important;
}
 
.service-ping .ping-status div[class*="text-emerald"],
.service-ping .ping-status div[class*="text-rose"],
.service-ping .ping-status div[class*="text-red"] {
    filter: brightness(1.4) !important; 
}
 
/* --- TAB NAVIGATION --- */
#tabs ul {
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;            
    flex-direction: row !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);
}
 
#tabs ul li {
    width: auto !important;
    flex: 0 0 auto !important;
}
 
#tabs ul li button {
    width: auto !important;
    border-radius: 50px !important;
    padding: 6px 20px !important;
    min-height: unset !important;
    color: #ffffff83 !important; 
    background-color: transparent !important;
}
 
#tabs ul li button[aria-selected="true"] {
    color: #6aabbf !important;
    background-color: rgba(78, 59, 122, 0.15) !important;
    font-weight: bold !important;
}
 
@media (max-width: 768px) {
    #tabs ul li button {
        padding: 5px 10px !important; 
        font-size: 13px !important;   
    }
    #tabs ul {
        max-width: 100% !important;
    }
}
 
/* --- BOOKMARK STYLING --- */
li.bookmark a {
    border-radius: 25px !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease-in-out !important;
}
 
li.bookmark .bookmark-icon {
    border-radius: 0 !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05) !important;
}
 
li.bookmark .bookmark-text {
    border-radius: 0 !important;
}
 
.bookmark-name {
    color: #f5f5f583 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
 
.bookmark-description {
    color: #94a3b8 !important;
    font-size: 0.7rem !important;
}
 
li.bookmark a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2) !important;
}
 
li.bookmark a:hover .bookmark-name {
    color: #555555 !important;
}
 
/* --- SYSTEM MONITOR --- */
.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; }
 
/* --- GENERAL TYPOGRAPHY --- */
.service-group-name, .bookmark-group-name {
    color: #555555 !important;
    font-weight: 700 !important;
}
 
.service-name, .service-description {
    color: #f5f5f583 !important; 
}
 
 
/* Desktop and Tablet */
@media (min-width: 768px) {
    .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;
        box-shadow: none !important;
    }
}
 
/* Mobile */
@media (max-width: 767px) {
    .widget-container,
    .information-widget-logo,
    [class*="information-widget-glances"] {
        background-color: rgba(58, 58, 58, 0.2) !important;
        border-radius: 25px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        height: auto !important;
        min-height: 40px !important;
        padding: 8px 12px !important;
        margin: 5px 0 !important;
        width: 100% !important;
    }
 
    .information-widget-inner, 
    [class*="information-widget-glances"] > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px !important;
    }
}
 
/* Global Alignment for Widgets */
.information-widget-logo img {
    margin: 0 !important;
    max-height: 24px !important;
}
 
.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;
}