/* ========================================
   OMNIUS FUTURISTIC THEME - CYAN EDITION
   Deep Navy + Cyan Glow + Glassmorphism
   ======================================== */

:root {
    --omnius-deep-navy: #0a1628;
    --omnius-near-black: #0d1117;
    --omnius-dark-slate: #1a1f2e;
    --omnius-panel-bg: rgba(30, 41, 59, 0.8);
    --omnius-cyan: #00d4ff;
    --omnius-cyan-bright: #38bdf8;
    --omnius-purple: #a855f7;
    --omnius-amber: #f59e0b;
    --omnius-coral: #ff6b6b;
    --omnius-green: #10b981;
    --omnius-text-primary: #f1f5f9;
    --omnius-text-secondary: #94a3b8;
    --omnius-text-muted: #64748b;
    --omnius-border-glow: rgba(56, 189, 248, 0.3);
}

/* ===== GLOBAL BACKGROUND ===== */
body {
    background-color: var(--omnius-deep-navy) !important;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(56, 189, 248, 0.03) 2px,
            rgba(56, 189, 248, 0.03) 4px
        ) !important;
    background-attachment: fixed !important;
    color: var(--omnius-text-primary) !important;
    font-family: 'Inter', 'DM Sans', system-ui, sans-serif !important;
}

/* ===== CATEGORY HEADERS ===== */
h2, .category-header, [class*="category"] h2 {
    color: var(--omnius-cyan) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    border-bottom: 2px solid var(--omnius-border-glow);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    position: relative;
    display: inline-block;
}

h2::after, .category-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--omnius-cyan);
    box-shadow: 0 0 10px var(--omnius-cyan);
}

/* ===== SERVICE CARDS - GLASSMORPHISM ===== */
.service-card, [class*="service"] {
    background: var(--omnius-panel-bg) !important;
    border: 1px solid var(--omnius-border-glow) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

/* Animated border glow on hover */
.service-card::before, [class*="service"]::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(
        45deg,
        transparent 30%,
        var(--omnius-cyan) 50%,
        transparent 70%
    );
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card:hover::before, [class*="service"]:hover::before {
    opacity: 0.6;
}

.service-card:hover, [class*="service"]:hover {
    border-color: var(--omnius-cyan) !important;
    box-shadow:
        0 0 30px rgba(0, 212, 255, 0.3),
        0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-4px) scale(1.01);
}

/* ===== SERVICE NAMES ===== */
.service-name, [class*="name"] {
    color: var(--omnius-text-primary) !important;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ===== SERVICE DESCRIPTIONS ===== */
.service-description, [class*="description"] {
    color: var(--omnius-text-secondary) !important;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    opacity: 0.8;
}

/* ===== ICONS WITH GLOW ===== */
.service-icon img, img[class*="icon"] {
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
    transition: filter 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-icon img,
[class*="service"]:hover img[class*="icon"] {
    filter: drop-shadow(0 0 16px var(--omnius-cyan));
    transform: scale(1.1);
}

/* ===== WIDGETS ===== */
.widget-card, [class*="widget"] {
    background: rgba(10, 22, 40, 0.6) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    backdrop-filter: blur(8px);
}

/* Widget stats */
.widget-value, [class*="stat"] {
    color: var(--omnius-cyan) !important;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.widget-label {
    color: var(--omnius-text-muted) !important;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SEARCH BAR ===== */
input[type="search"], input[type="text"] {
    background: rgba(26, 31, 46, 0.9) !important;
    border: 2px solid var(--omnius-border-glow) !important;
    color: var(--omnius-text-primary) !important;
    border-radius: 24px !important;
    padding: 12px 20px !important;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

input[type="search"]:focus, input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    border-color: var(--omnius-cyan) !important;
    background: rgba(26, 31, 46, 1) !important;
}

input[type="search"]::placeholder {
    color: var(--omnius-text-muted);
    font-style: italic;
}

/* ===== STATUS INDICATORS ===== */
.status-dot, [class*="status"] {
    position: relative;
}

.status-dot.online::before,
.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--omnius-green);
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    box-shadow: 0 0 10px var(--omnius-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-dot.offline::before,
.status-offline::before {
    background: var(--omnius-coral);
    box-shadow: 0 0 10px var(--omnius-coral);
}

.status-dot.warning::before,
.status-warning::before {
    background: var(--omnius-amber);
    box-shadow: 0 0 10px var(--omnius-amber);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--omnius-deep-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--omnius-border-glow);
    border-radius: 5px;
    border: 2px solid var(--omnius-deep-navy);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--omnius-cyan);
    box-shadow: 0 0 10px var(--omnius-cyan);
}

/* ===== LINKS ===== */
a {
    color: var(--omnius-cyan) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--omnius-cyan-bright) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===== BUTTONS ===== */
button, .button {
    background: linear-gradient(135deg, var(--omnius-cyan) 0%, var(--omnius-purple) 100%) !important;
    border: none !important;
    border-radius: 8px;
    color: var(--omnius-text-primary) !important;
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

button:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

/* ===== GRID LAYOUT IMPROVEMENTS ===== */
[class*="grid"] {
    gap: 20px !important;
}

/* ===== LOADING INDICATORS ===== */
.loading, [class*="loading"] {
    background: linear-gradient(
        90deg,
        var(--omnius-panel-bg) 0%,
        rgba(56, 189, 248, 0.1) 50%,
        var(--omnius-panel-bg) 100%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== CLIPPED CORNERS (HUD STYLE) ===== */
.service-card.hud-style {
    clip-path: polygon(
        0 8px,
        8px 0,
        calc(100% - 8px) 0,
        100% 8px,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        8px 100%,
        0 calc(100% - 8px)
    );
}

/* ===== ACCESSIBILITY ===== */
*:focus-visible {
    outline: 2px solid var(--omnius-cyan);
    outline-offset: 2px;
}
