/* -------------------------------------------------------------
   PREMIUM DARK TECH / MINIMALIST GEIST-STYLE STYLESHEET
   ------------------------------------------------------------- */

/* Page Background & Global Reset */
body, html, #__next, #page_wrapper, #inner_wrapper {
    background-color: #050508 !important; /* Extremely deep tech off-black */
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 0) !important;
    background-size: 32px 32px !important; /* Very subtle tech grid */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #f3f4f6 !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Base resets */
* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: 500 !important;
    text-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Headings and group titles */
h1, h2, h3, h4, h5, h6, 
div[class*="text-2xl"], div[class*="text-xl"], div[class*="text-lg"] {
    font-weight: 700 !important;
    text-transform: none !important;
    color: #ffffff !important;
    letter-spacing: -0.02em !important;
}

/* Category/Group Headers - Minimalist badge style */
div[class*="mb-"]:has(h2), div[class*="mb-"]:has(h3), 
div[class*="text-2xl"]:not(a), div[class*="text-xl"]:not(a) {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 6px 12px !important;
    display: inline-block !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Service Cards / Link Wrappers - Glassmorphism */
a[href], div[class*="bg-theme-"], div[class*="bg-slate-"], div[class*="bg-zinc-"], 
div[class*="bg-neutral-"], div[class*="bg-stone-"], div[class*="backdrop-blur"], .card {
    background-color: rgba(10, 10, 15, 0.7) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: #e5e7eb !important;
    opacity: 1 !important;
}

/* Hover States - Subtle scale and border illumination */
a[href]:hover, div[class*="bg-theme-"]:hover, div[class*="bg-slate-"]:hover, 
div[class*="bg-zinc-"]:hover, .card:hover {
    transform: translateY(-2px) !important;
    background-color: rgba(15, 15, 22, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
}

/* Active Pressed States */
a[href]:active, div[class*="bg-theme-"]:active, .card:active {
    transform: translateY(1px) !important;
}

/* Texts inside cards */
p, span, div, a {
    color: #9ca3af !important;
}

div[class*="text-xl"], div[class*="text-lg"], span[class*="text-xl"] {
    color: #ffffff !important;
}

/* Status / Ping indicators */
div[class*="bg-green-"], span[class*="bg-green-"] {
    background-color: #10b981 !important; /* Clean emerald green */
    border: none !important;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4) !important;
    border-radius: 9999px !important;
}

/* Error States (API Error blocks) */
div[class*="bg-red-"], div[class*="text-red-"], 
span[class*="bg-red-"], div[class*="border-red-"] {
    background-color: rgba(239, 68, 68, 0.08) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    padding: 8px 12px !important;
}

div[class*="bg-red-"] *, div[class*="text-red-"] * {
    color: #f87171 !important;
}

/* Header & Information Widgets Wrapper */
#information-widgets {
    background-color: rgba(10, 10, 15, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    margin: 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* Individual Resource Widgets (CPU, MEM, DISK) */
.information-widget-resource, .widget-container {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    margin: 3px !important;
    color: #d1d5db !important;
}

/* Resource usage bar */
div[class*="resource-usage"] {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-radius: 9999px !important;
    height: 6px !important;
    overflow: hidden !important;
}

div[class*="resource-usage"] > div {
    background-color: #3b82f6 !important; /* Minimal Electric Blue */
    border-radius: 9999px !important;
}

/* Search bar field */
input[type="text"], input[placeholder="Search…"], .information-widget-search input {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

input[type="text"]:focus {
    outline: none !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Search Button */
button[type="submit"], button[class*="headlessui-listbox-button"] {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    color: #ffffff !important;
    padding: 4px 10px !important;
}

/* Footer & Refresh */
#footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 16px !important;
    margin-top: 40px !important;
}

#revalidate svg {
    color: rgba(255, 255, 255, 0.4) !important;
}

#revalidate svg:hover {
    color: #ffffff !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}
::-webkit-scrollbar-track {
    background: #050508 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.04) !important;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 9999px !important;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15) !important;
}
