ConnectionStatus.css•1.3 kB
.connection-status {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
border-radius: 8px;
font-size: 0.875rem;
font-weight: 500;
transition: all 0.2s ease;
backdrop-filter: blur(10px);
border: 1px solid transparent;
}
.connection-status.connecting {
background: rgba(255, 135, 0, 0.1);
color: var(--f1-orange);
border-color: rgba(255, 135, 0, 0.2);
}
.connection-status.connected {
background: rgba(0, 215, 98, 0.1);
color: var(--f1-green);
border-color: rgba(0, 215, 98, 0.2);
}
.connection-status.failed {
background: rgba(225, 6, 0, 0.1);
color: var(--f1-red);
border-color: rgba(225, 6, 0, 0.2);
}
.connection-status.disconnected {
background: rgba(199, 199, 199, 0.1);
color: var(--f1-silver);
border-color: rgba(199, 199, 199, 0.2);
}
.status-text {
font-weight: 600;
letter-spacing: 0.025em;
}
/* Add a subtle pulse animation for connecting state */
.connection-status.connecting {
animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
/* Responsive design */
@media (max-width: 768px) {
.connection-status {
font-size: 0.8rem;
padding: 0.4rem 0.6rem;
gap: 0.4rem;
}
.status-text {
display: none;
}
}