/* Estilos adicionales para el monitor de bombas */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.pump-card.calling,
.pump-card.starting {
    animation: pulse 2s infinite;
}

.pump-card.fuelling {
    border: 3px solid #007bff;
}

.pump-card.closed {
    opacity: 0.6;
}

/* Responsive design */
@media (max-width: 768px) {
    .pump-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    .pump-image {
        max-width: 100px;
    }
    
    .pump-number {
        font-size: 18px;
    }
    
    .pump-status {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .pump-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Indicador de conexión */
.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    border-radius: 20px;
    background: #28a745;
    color: white;
    font-size: 14px;
    z-index: 1000;
}

.connection-status.disconnected {
    background: #dc3545;
}

/* Estilos para el número y estado de la bomba */
.pump-number {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 8px 0 4px 0;
}

.pump-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.status-idle {
    background: #d1fae5;
    color: #065f46;
}

.status-calling,
.status-starting {
    background: #fef3c7;
    color: #92400e;
}

.status-fuelling {
    background: #dbeafe;
    color: #1e40af;
}

.status-closed,
.status-error {
    background: #fee2e2;
    color: #991b1b;
}