/* ==========================================================================
   PuchiFlix High-Contrast & Ultra-Legible Dashboard Theme
   ========================================================================== */

/* --- 1. Soft, Ambient Wallpaper (No Glare, High Contrast) --- */
#background {
    filter: brightness(0.22) blur(12px) !important;
    opacity: 0.75 !important;
}

#inner_wrapper {
    background: radial-gradient(circle at 50% 15%, rgba(15, 23, 42, 0.65) 0%, rgba(2, 6, 23, 0.94) 100%) !important;
    backdrop-filter: blur(10px) brightness(0.75) !important;
}

/* --- 2. Deep Solid Cards (Zero Background Bleed-Through) --- */
.card, 
div[class*="service_container"], 
[class*="card"] {
    background: rgba(15, 23, 42, 0.94) !important;
    backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6), 0 2px 6px -1px rgba(0, 0, 0, 0.5) !important;
    border-radius: 0.85rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card:hover, 
[class*="card"]:hover {
    background: rgba(23, 37, 65, 0.98) !important;
    border-color: rgba(96, 165, 250, 0.75) !important;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* --- 3. Category & Section Headers --- */
h2, 
.group-title, 
[class*="group-title"],
div[class*="group"] > h2,
#services h2 {
    color: #ffffff !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.85rem !important;
    padding-left: 0.25rem !important;
    display: flex !important;
    align-items: center !important;
}

/* --- 4. Service Titles & Names (Pure, Bold White) --- */
.card .font-semibold,
.card .font-bold,
.card [class*="font-semibold"],
.card [class*="font-bold"],
.card [class*="text-base"],
.card [class*="text-sm"].font-medium,
.card h3,
.card h4,
.card div.text-white,
.card span.font-medium,
.card .text-theme-900,
.card .dark\:text-theme-200,
.card a > div > div:first-child {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: 0.015em !important;
}

/* --- 5. Service Descriptions (Bright, Crisp Light Silver) --- */
.card p,
.card [class*="text-xs"]:not([class*="badge"]),
.card .text-neutral-400,
.card .text-slate-400,
.card .text-stone-400,
.card .text-gray-400,
.card .text-zinc-400,
.card span.text-xs {
    color: #cbd5e1 !important; /* Slate 300 - High Contrast */
    font-weight: 500 !important;
    font-size: 0.84rem !important;
    line-height: 1.4 !important;
}

/* --- 6. Service Icons (Drop Shadow for Instant Recognition) --- */
.card img, 
.card svg {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)) !important;
    transition: transform 0.2s ease !important;
}

.card:hover img, 
.card:hover svg {
    transform: scale(1.08) !important;
}

/* --- 7. Sub-panels & Widgets (Ring, Jellyfin, Radarr, Sonarr, qBit) --- */
.card [class*="widget"],
.card [class*="metrics"],
.card table {
    background-color: rgba(30, 41, 59, 0.75) !important;
    border-radius: 0.5rem !important;
    padding: 0.4rem 0.65rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: 0.35rem !important;
}

/* Widget labels & keys */
.card [class*="widget"] span,
.card [class*="widget"] div {
    color: #e2e8f0 !important;
    font-weight: 600 !important;
}

/* Widget Values & Numbers Highlighted */
.card [class*="widget"] .tabular-nums,
.card [class*="widget"] [class*="text-theme-"] {
    color: #38bdf8 !important; /* Vivid Cyan/Sky Blue */
    font-weight: 700 !important;
}

/* --- 8. Information Widgets Header (Greeting, Weather, Gauges) --- */
#information-widgets {
    background: rgba(15, 23, 42, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 1rem !important;
    padding: 1rem 1.5rem !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5) !important;
}

.information-widget-greeting span {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.55rem !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9) !important;
}

.information-widget-datetime span,
.information-widget-openmeteo span,
.information-widget-resource div {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

/* CPU / RAM Usage Progress Bars */
.resource-usage > div {
    background: linear-gradient(90deg, #3b82f6, #06b6d4) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.7) !important;
}

/* --- 9. Search Bar --- */
dialog input {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.35) !important;
}
