/**
 * Planning WebSocket - Styles
 * À inclure avec planning-websocket.js
 */

/* Connection Dot */
.connection-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.connection-dot.connected {
  background: #28a745;
  box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.connection-dot.disconnected {
  background: #dc3545;
  box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}

.connection-dot.connecting {
  background: #ffc107;
  animation: pulse-connecting 1s ease-in-out infinite;
}

.connection-dot.error {
  background: #dc3545;
  animation: pulse-error 0.5s ease-in-out infinite;
}

@keyframes pulse-connecting {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

@keyframes pulse-error {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Toast Notifications */
.planningws-toast {
  background: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.planningws-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.planningws-toast i {
  font-size: 1rem;
}

.planningws-toast-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.planningws-toast-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
  color: #333;
}

.planningws-toast-error {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.planningws-toast-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* Version grande pour écrans d'affichage */
.display-mode .connection-dot {
  width: 16px;
  height: 16px;
}

.display-mode .planningws-toast {
  font-size: 1.1rem;
  padding: 15px 30px;
}
