/* === Votrex Homelab - Refined Mono Theme === */

/* Force pure black on all background layers */
html,
body,
#__next,
main,
.bg-theme-50,
.dark .bg-theme-50,
.dark .bg-theme-100,
.dark .bg-theme-200,
.dark .bg-theme-800,
.dark .bg-theme-900,
.dark .bg-theme-950 {
    background-color: #0a0a0a !important;
    background-image: none !important;
}

body {
    background: #0a0a0a !important;
    background-image: 
        radial-gradient(at 20% 0%, rgba(255, 255, 255, 0.025) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(255, 255, 255, 0.015) 0px, transparent 50%) !important;
    background-attachment: fixed !important;
}

/* Typography refinement */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

h1, h2 {
    color: #fafafa !important;
    font-weight: 500 !important;
    letter-spacing: -0.025em !important;
}

/* Group section headers */
.services-group h2,
.bookmarks-group h2 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 0.6rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.7rem !important;
    letter-spacing: 0.15em;
    color: #71717a !important;
    font-weight: 600 !important;
}

/* Service tiles */
.service-card,
.bookmark-text {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.service-card:hover,
.bookmark-text:hover {
    background: #161616 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Service description text */
.service-description {
    color: #71717a !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
}

/* Service name */
.service-name {
    color: #fafafa !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

/* Top info widgets */
#information-widgets {
    gap: 0.5rem;
}

#information-widgets > div {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
}

/* Status indicators */
.status-dot {
    box-shadow: none !important;
    width: 6px !important;
    height: 6px !important;
}

/* Search bar */
#search-bar input {
    background: #111111 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    color: #fafafa !important;
    font-weight: 400 !important;
}

#search-bar input::placeholder {
    color: #52525b !important;
}

#search-bar input:focus {
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05) !important;
    outline: none !important;
}

/* Datetime */
.datetime-text {
    font-weight: 300 !important;
    letter-spacing: -0.03em !important;
    color: #fafafa !important;
}

/* Bookmark abbreviation badges */
.bookmark-text > div:first-child {
    background: #1a1a1a !important;
    color: #a1a1aa !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 6px !important;
}

/* Latency badges */
.service-tag {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 4px !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
}

/* Scroll */
html { scroll-behavior: smooth; }

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Network Reference section */
.services-group:last-child {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.services-group:last-child .service-card {
    background: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    opacity: 0.85;
}

.services-group:last-child .service-card:hover {
    opacity: 1;
}

/* Fade in */
.services-group {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Footer */
#footer {
    color: #52525b !important;
    font-size: 0.7rem !important;
}

/* Theme buttons */
[aria-label="Toggle theme"],
[aria-label] button {
    background: #111111 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[aria-label] button:hover {
    background: #161616 !important;
}

/* Icons */
.service-icon img,
.bookmark-icon img {
    opacity: 0.95;
    filter: brightness(0.95) contrast(1.05);
}

.service-card:hover .service-icon img,
.bookmark-text:hover .bookmark-icon img {
    opacity: 1;
    filter: brightness(1) contrast(1);
}

/* Jellyfin widget */
.jellyfin-widget,
[class*="jellyfin"] {
    background: #0d0d0d !important;
}

/* Resource bars */
.resources-bar,
.bar {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 2px !important;
}

.resources-bar > div,
.bar > div {
    background: rgba(255, 255, 255, 0.4) !important;
}

/* Override any theme color leak */
.dark {
    --color-primary: #0a0a0a !important;
    --color-secondary: #111111 !important;
}
