/* Real-time Dashboard Animations */
.data-updated {
    animation: pulse 0.5s ease-in-out;
    background-color: #f0f8ff !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: 0 0 10px rgba(0,123,255,0.3); }
    100% { transform: scale(1); }
}

.metric-card {
    transition: all 0.3s ease;
}

.metric-card.updated {
    border-left: 4px solid #007bff;
    background: linear-gradient(90deg, rgba(0,123,255,0.05) 0%, transparent 100%);
}

.real-time-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    margin-left: 8px;
    animation: blink 2s infinite;
}

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

.workflow-dashboard-title {
    position: relative;
}

.card-body h2 {
    transition: all 0.3s ease;
}

/* Ticket metric card styling */
.ticket-metric-card {
    position: relative;
}

.ticket-metric-card.data-updated {
    border-left: 4px solid #007bff;
    box-shadow: 0 0 15px rgba(0,123,255,0.2);
}

/* Engineer stat card styling */
.engineer-stat-card {
    position: relative;
}

.engineer-stat-card.data-updated {
    border-left: 4px solid #28a745;
    box-shadow: 0 0 15px rgba(40,167,69,0.2);
}

/* Warehouse stat card styling */
.warehouse-stat-card {
    position: relative;
}

.warehouse-stat-card.data-updated {
    border-left: 4px solid #ffc107;
    box-shadow: 0 0 15px rgba(255,193,7,0.2);
}

/* Performance indicators */
.performance-indicator {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.performance-good {
    background-color: #d4edda;
    color: #155724;
}

.performance-warning {
    background-color: #fff3cd;
    color: #856404;
}

.performance-danger {
    background-color: #f8d7da;
    color: #721c24;
}