/* ============================================
   CONNECTION STATUS BANNER STYLES
   Version: 1.0.0
   
   Styles for the connection status banner that
   appears when SignalR disconnects/reconnects
   ============================================ */

.connection-status-banner {
 position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
    transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Connecting/Reconnecting State */
.connection-status-banner.status-connecting {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-bottom: 2px solid #f59e0b;
}

/* Connected State */
.connection-status-banner.status-connected {
 background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-bottom: 2px solid #10b981;
}

/* Disconnected/Offline State */
.connection-status-banner.status-disconnected {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-bottom: 2px solid #ef4444;
}

/* Icon animations */
.connection-status-banner .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ensure banner is above all other content */
.connection-status-banner + * {
    margin-top: 0 !important;
}

/* Mobile-friendly responsive adjustments */
@media (max-width: 576px) {
    .connection-status-banner {
        font-size: 0.8rem;
        padding: 0.65rem 0.75rem;
    }
    
    .connection-status-banner .fa-spinner,
    .connection-status-banner .fa-check-circle,
    .connection-status-banner .fa-wifi-slash {
 font-size: 0.9rem;
 }
}

/* Print: hide connection banner */
@media print {
    .connection-status-banner {
        display: none !important;
    }
}
