/* /src/modules/sysmon/css/sysmon.css */

:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.125);
    --glass-shadow: var(--button-glow, rgba(108, 99, 255, 0.35));
    --title-gradient: linear-gradient(45deg, #fff 30%, #a5a5a5 100%);
    --card-hover-bg: rgba(255, 255, 255, 0.1);
    --card-hover-border: rgba(255, 255, 255, 0.25);
    --stat-label-opacity: 0.7;
}

[data-bs-theme="light"] {
    --glass-bg: rgba(248, 249, 250, 0.85);
    /* Adaptive light gray */
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: var(--button-glow, rgba(108, 99, 255, 0.25));
    --title-gradient: linear-gradient(45deg, #1a1a1a 30%, #4a4a4a 100%);
    --card-hover-bg: rgba(255, 255, 255, 1);
    --card-hover-border: rgba(0, 0, 0, 0.15);
    --stat-label-opacity: 0.6;
}

.sysmon-container {
    padding: 2rem;
    background: transparent;
    min-height: 100vh;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px 0 var(--glass-shadow);
    background: var(--card-hover-bg);
    border: 1px solid var(--card-hover-border);
}

.monitor-stat {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: var(--stat-label-opacity);
    letter-spacing: 1px;
}

.service-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(128, 128, 128, 0.05);
    margin-bottom: 0.75rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-active {
    background-color: #00ca72;
    /* Slightly deeper green for contrast */
    box-shadow: 0 0 10px rgba(0, 202, 114, 0.4);
    animation: pulse-green 2s infinite;
}

.status-inactive {
    background-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.4);
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.progress-custom {
    height: 10px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-glow {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
    box-shadow: 0 0 15px rgba(58, 123, 213, 0.3);
    transition: width 0.5s ease;
}

.sysmon-title {
    font-size: 2rem;
    font-weight: 800;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

/* Specific accent colors for stats */
.text-cpu {
    color: #f39c12;
}

.text-mem {
    color: #3498db;
}

.text-disk {
    color: #e74c3c;
}

.text-uptime {
    color: #27ae60;
}