html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.kpi-card {
    border-radius: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.sensor-card {
    border-radius: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sensor-card:hover {
    transform: translateY(-3px);
}

.sensor-card-alert {
    border-left: 5px solid #ef4444 !important;
}

.sensor-card-ok {
    border-left: 5px solid #10b981 !important;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-ring 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.live-dot-ok {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
}

.live-dot-alert {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.login-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0ea5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    border-radius: 20px !important;
    width: 100%;
    max-width: 440px;
}

#blazor-error-ui {
    background: #fef2f2;
    color: #991b1b;
    bottom: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 0.7rem;
}


.wps-ia-html h1, .wps-ia-html h2, .wps-ia-html h3, .wps-ia-html h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wps-ia-html p {
    margin-bottom: 0.75rem;
}

.wps-ia-html ul, .wps-ia-html ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.wps-ia-html table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
}

.wps-ia-html th, .wps-ia-html td {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--mud-palette-lines-default);
    text-align: left;
}
