/**
 * State Components
 * Empty states, loading states, and error states
 */

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.empty-state strong {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.empty-state-description {
    font-size: 0.9rem;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

.loading-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Classes for Dynamic Coloring */
.status-healthy {
    color: var(--success-color);
}

.status-warning {
    color: var(--warning-color);
}

.status-critical {
    color: var(--danger-color);
}

.status-info {
    color: var(--info-color);
}

/* Background Status Classes */
.bg-status-healthy {
    background-color: #d1fae5;
    color: #065f46;
}

.bg-status-warning {
    background-color: #fef3c7;
    color: #78350f;
}

.bg-status-critical {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.bg-status-info {
    background-color: #e0f2fe;
    color: #075985;
}

/* Auto-refresh Status Indicator */
.auto-refresh-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #166534;
    white-space: nowrap;
    min-width: 200px;
}

.auto-refresh-status .pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}
