/* _content/Ayva.Network.Sla/Components/SlaDashboard.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════
   SLA Dashboard - Glassmorphism Dark Theme
   Uses CSS variables from ayva-theme.css exclusively
   ═══════════════════════════════════════════════════════════════ */

.sla-dashboard[b-1uki61daat] {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
    animation: fadeInUp-b-1uki61daat 0.4s ease-out;
}

/* Header */
.sla-header[b-1uki61daat] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.sla-title-row[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

[b-1uki61daat] .sla-title-icon {
    font-size: var(--text-3xl) !important;
    color: var(--accent-color);
}

.sla-title[b-1uki61daat] {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin: 0;
}

.sla-subtitle[b-1uki61daat] {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

[b-1uki61daat] .sla-period-toggle .mud-toggle-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

/* Loading */
.sla-loading[b-1uki61daat] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-2xl);
}

.sla-loading-text[b-1uki61daat] {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* Stats Row */
.sla-stats-row[b-1uki61daat] {
    display: grid;
    grid-template-columns: minmax(0, auto) repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
    animation: fadeInUp-b-1uki61daat 0.4s ease-out;
}

.sla-stat-card[b-1uki61daat] {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    transition: all var(--transition-fast);
    min-width: 0;
}

.sla-stat-card:hover[b-1uki61daat] {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sla-stat-hero[b-1uki61daat] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.stat-alert[b-1uki61daat] {
    border-color: var(--error-color);
    background: var(--error-bg);
}

/* Gauge Ring */
.sla-gauge-ring[b-1uki61daat] {
    position: relative;
    width: 120px;
    height: 120px;
}

.gauge-svg[b-1uki61daat] {
    width: 100%;
    height: 100%;
}

.gauge-track[b-1uki61daat] {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.gauge-fill[b-1uki61daat] {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray var(--transition-normal);
}

.gauge-fill.sla-good[b-1uki61daat] {
    stroke: var(--success-color);
}

.gauge-fill.sla-warn[b-1uki61daat] {
    stroke: var(--warning-color);
}

.gauge-fill.sla-bad[b-1uki61daat] {
    stroke: var(--error-color);
}

.gauge-value[b-1uki61daat] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gauge-number[b-1uki61daat] {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.gauge-number.sla-good[b-1uki61daat] {
    color: var(--success-color);
}

.gauge-number.sla-warn[b-1uki61daat] {
    color: var(--warning-color);
}

.gauge-number.sla-bad[b-1uki61daat] {
    color: var(--error-color);
}

.gauge-label[b-1uki61daat] {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stat Icons */
.stat-icon[b-1uki61daat] {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-success[b-1uki61daat] {
    background: var(--success-bg);
    color: var(--success-color);
}

.stat-icon-error[b-1uki61daat] {
    background: var(--error-bg);
    color: var(--error-color);
}

.stat-icon-info[b-1uki61daat] {
    background: var(--info-bg);
    color: var(--info-color);
}

.stat-content[b-1uki61daat] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-value[b-1uki61daat] {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value-success[b-1uki61daat] {
    color: var(--success-color);
}

.stat-value-error[b-1uki61daat] {
    color: var(--error-color);
}

.stat-value-info[b-1uki61daat] {
    color: var(--info-color);
}

.stat-label[b-1uki61daat] {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.stat-detail[b-1uki61daat] {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

/* Sections */
.sla-section[b-1uki61daat] {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    animation: fadeInUp-b-1uki61daat 0.4s ease-out both;
}

.section-header[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

[b-1uki61daat] .section-icon {
    color: var(--accent-color);
}

[b-1uki61daat] .section-icon-error {
    color: var(--error-color) !important;
}

.section-header h3[b-1uki61daat] {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0;
}

.filter-row[b-1uki61daat] {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
}

[b-1uki61daat] .sla-search {
    min-width: 200px;
}

[b-1uki61daat] .sla-filter {
    min-width: 140px;
}

/* Data Grid */
[b-1uki61daat] .sla-grid .mud-table {
    background: transparent !important;
}

[b-1uki61daat] .sla-grid .mud-table-head .mud-table-cell {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    font-size: var(--text-xs) !important;
    font-weight: var(--font-semibold) !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border-color) !important;
}

[b-1uki61daat] .sla-grid .mud-table-body .mud-table-cell {
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: var(--text-sm) !important;
}

[b-1uki61daat] .sla-row-breach {
    background: var(--error-bg) !important;
}

[b-1uki61daat] .sla-row-ok:hover {
    background: var(--bg-hover) !important;
}

.uptime-cell[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

[b-1uki61daat] .uptime-bar {
    min-width: 60px;
    max-width: 80px;
}

.sla-good[b-1uki61daat] {
    color: var(--success-color);
}

.sla-warn[b-1uki61daat] {
    color: var(--warning-color);
}

.sla-bad[b-1uki61daat] {
    color: var(--error-color);
}

/* Status Badges */
.status-badge[b-1uki61daat] {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.status-meeting[b-1uki61daat] {
    background: var(--success-bg);
    color: var(--success-color);
}

.status-breach[b-1uki61daat] {
    background: var(--error-bg);
    color: var(--error-color);
}

.status-dot-ok[b-1uki61daat] {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--success-color);
}

.status-dot-pulse[b-1uki61daat] {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--error-color);
    animation: pulse-b-1uki61daat 1.5s ease-in-out infinite;
}

.status-text-error[b-1uki61daat] {
    color: var(--error-color);
    font-weight: var(--font-semibold);
}

/* Breach Section */
.sla-breach-section[b-1uki61daat] {
    border-color: var(--error-color);
}

.breach-list[b-1uki61daat] {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.breach-card[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--error-bg);
    border: 1px solid var(--error-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.breach-card:hover[b-1uki61daat] {
    transform: translateX(4px);
}

.breach-info[b-1uki61daat] {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.breach-device[b-1uki61daat] {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.breach-site[b-1uki61daat] {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

.breach-metrics[b-1uki61daat] {
    display: flex;
    gap: var(--space-lg);
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.breach-metric[b-1uki61daat] {
    display: flex;
    flex-direction: column;
}

.breach-metric-label[b-1uki61daat] {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.breach-metric-value[b-1uki61daat] {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.breach-date[b-1uki61daat] {
    font-size: var(--text-xs);
    color: var(--text-muted);
    white-space: nowrap;
}

/* Config Section */
.config-list[b-1uki61daat] {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.config-empty[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

[b-1uki61daat] .config-empty-icon {
    color: var(--info-color);
}

.config-card[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.config-card:hover[b-1uki61daat] {
    border-color: var(--accent-color);
}

.config-scope[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-width: 160px;
}

.config-target-name[b-1uki61daat] {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

.config-targets[b-1uki61daat] {
    display: flex;
    gap: var(--space-lg);
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.config-target[b-1uki61daat] {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.config-target strong[b-1uki61daat] {
    color: var(--text-primary);
}

.config-actions[b-1uki61daat] {
    display: flex;
    gap: var(--space-xs);
}

/* Config Form */
.config-form[b-1uki61daat] {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

/* Dialog */
.dialog-title[b-1uki61daat] {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeInUp-b-1uki61daat {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-b-1uki61daat {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Responsive */
@media (max-width: 768px) {
    .sla-stats-row[b-1uki61daat] {
        grid-template-columns: 1fr 1fr;
    }

    .sla-header[b-1uki61daat] {
        flex-direction: column;
        align-items: flex-start;
    }

    .breach-card[b-1uki61daat] {
        flex-direction: column;
        align-items: flex-start;
    }

    .breach-info[b-1uki61daat] {
        min-width: auto;
    }

    .filter-row[b-1uki61daat] {
        width: 100%;
    }

    [b-1uki61daat] .sla-search,
    [b-1uki61daat] .sla-filter {
        min-width: auto;
        flex: 1;
    }

    .sla-section[b-1uki61daat] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 640px) {
    .sla-dashboard[b-1uki61daat] {
        padding: var(--space-md);
    }

    .sla-stats-row[b-1uki61daat] {
        grid-template-columns: 1fr;
    }

    .sla-stat-hero[b-1uki61daat] {
        justify-content: center;
    }

    .config-card[b-1uki61daat] {
        flex-direction: column;
        align-items: flex-start;
    }

    .config-scope[b-1uki61daat] {
        min-width: auto;
    }

    .breach-metrics[b-1uki61daat] {
        gap: var(--space-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sla-dashboard[b-1uki61daat],
    .sla-section[b-1uki61daat],
    .sla-stat-card[b-1uki61daat],
    .sla-stats-row[b-1uki61daat],
    .breach-card[b-1uki61daat],
    .config-card[b-1uki61daat],
    .gauge-fill[b-1uki61daat],
    .status-dot-pulse[b-1uki61daat] {
        animation: none !important;
        transition: none !important;
    }
}
