/**
 * Badge Components
 * Small labels and tags for status/categorization
 * Reusable across all pages for marking content
 */

/* Base Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Badge Color Variants */
.badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

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

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

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

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

/* Badge Size Variants */
.badge-sm {
    padding: 2px 8px;
    font-size: 11px;
}

/* Language Badge (Generic - can mark any language) */
.language-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
    margin-bottom: 4px;
}

/* Status Badges (enabled/disabled states) */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.enabled {
    background: #dcfce7;
    color: #166534;
}

.status-badge.disabled {
    background: #fee2e2;
    color: #991b1b;
}

/* Custom Badge Variant */
.custom-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
    margin-left: 8px;
}

/* Effect Badges (realtime/refresh indicators) */
.effect-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.effect-badge.realtime {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.effect-badge.refresh {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde047;
}

/* Azure Status Indicator Badge */
.azure-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
}

.azure-status-connected {
    background: #d1fae5;
    border: 2px solid #6ee7b7;
    color: #065f46;
}

.azure-status-disconnected {
    background: #fee2e2;
    border: 2px solid #f87171;
    color: #991b1b;
}

.azure-status-badge .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.azure-status-badge .status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse 2s infinite;
}

.azure-status-badge .status-indicator.offline {
    background: var(--danger-color);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.azure-status-badge .status-text {
    font-weight: 600;
}

.azure-status-badge .status-error {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    color: #7f1d1d;
    font-weight: normal;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Status Indicator Icon Component */
.status-indicator-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-indicator-icon.online {
    background: var(--success-color);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-indicator-icon.offline {
    background: var(--danger-color);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.status-indicator-icon.warning {
    background: var(--warning-color);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.status-indicator-icon.active {
    background: #10b981;
}

.status-indicator-icon.inactive {
    background: #94a3b8;
}
