/* assets/css/style.css */
:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-bg: #1e1e2f;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #6c757d;
}

body {
    background-color: #f0f2f5;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s ease;
}

.dashboard-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.boiler-status-card .card-body {
    padding: 1.5rem;
}

.temp-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 1rem 0;
    background: linear-gradient(45deg, #2c3e50, #000000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.unit {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.status-indicator {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-online {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-idle {
    background-color: #e9ecef;
    color: #495057;
}

.status-offline {
    background-color: #ffebee;
    color: #c62828;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: currentColor;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.95);
        opacity: 1;
    }
}

.component-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.badge-on {
    background-color: #def7ec;
    color: #03543f;
}

.badge-off {
    background-color: #fde8e8;
    color: #9b1c1c;
}

.chart-container {
    height: 100px;
    margin-top: 1rem;
}

.kpi-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
}

.blink {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.5;
    }
}

.opacity-75 {
    opacity: 0.75;
}