/* =====================================================
   CENTRO DE NOTIFICAÇÕES
   ===================================================== */

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 320px;
  max-width: 400px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid;
  pointer-events: all;
  cursor: pointer;
  transform: translateX(100%);
  animation: slideIn 0.3s ease forwards;
  transition: all 0.2s ease;
}

.notification:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 6px 15px rgba(0, 0, 0, 0.08);
}

.notification-success {
  border-left-color: #10b981;
}

.notification-error {
  border-left-color: #ef4444;
}

.notification-warning {
  border-left-color: #f59e0b;
}

.notification-info {
  border-left-color: #3b82f6;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-success .notification-icon {
  background: #10b981;
}

.notification-error .notification-icon {
  background: #ef4444;
}

.notification-warning .notification-icon {
  background: #f59e0b;
}

.notification-info .notification-icon {
  background: #3b82f6;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-message {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: #6b7280;
}

.notification-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: #f3f4f6;
  color: #374151;
}

/* =====================================================
   INDICADOR DE CONEXÃO
   ===================================================== */

.connection-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: white;
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 500;
  z-index: 9998;
  transition: all 0.3s ease;
}

.connection-icon {
  width: 16px;
  height: 16px;
}

.connection-icon.connected {
  color: #10b981;
}

.connection-icon.disconnected {
  color: #ef4444;
  animation: pulse 2s infinite;
}

.connection-icon.error {
  color: #f59e0b;
  animation: pulse 2s infinite;
}

.connection-connected {
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
}

.connection-disconnected {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}

.connection-error {
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.05);
}

.connection-text {
  font-size: 12px;
  font-weight: 500;
}

.connection-connected .connection-text {
  color: #10b981;
}

.connection-disconnected .connection-text {
  color: #ef4444;
}

.connection-error .connection-text {
  color: #f59e0b;
}

/* =====================================================
   ANIMAÇÕES
   ===================================================== */

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }

  .notification {
    min-width: auto;
    max-width: none;
  }

  .connection-indicator {
    bottom: 10px;
    right: 10px;
  }

  .connection-text {
    display: none;
  }

  .connection-indicator {
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .notification {
    padding: 12px;
  }

  .notification-message {
    font-size: 13px;
  }

  .notification-time {
    font-size: 11px;
  }
}
