/* global.css */
@charset "UTF-8";

#fingerprint {
  display: none;
}

body {
  background-color: #f0f0f0;
  color: #333;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

.dark-theme {
  background-color: #2e2e2e;
  color: #f0f0f0;
}

.container {
  padding: 10px;
}

.message {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

.dark-theme .message {
  background-color: #444;
  border-color: #777;
}

.switch-container {
  display: flex;
  align-items: center;
  margin: 20px;
}

.square-indicator1 {
  width: 20px;
  height: 20px;
  background-color: #fff;
  transition: background-color 0.3s;
}

.square-indicator2 {
  width: 20px;
  height: 20px;
  background-color: #000;
  transition: background-color 0.3s;
}

.dark-theme .square-indicator {
  background-color: #fff;
}

.theme-switch {
  margin: 0 10px;
  padding: 10px;
  background-color: #6c757d;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.theme-switch:hover {
  background-color: #5a6268;
}

.theme-switch {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 28px;
  background: #ccc;
  border-radius: 50px;
  position: relative;
  outline: 0;
  transition: background 0.3s;
}

.theme-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.theme-switch:checked::before {
  transform: translateX(22px);
}

.theme-switch {
  -webkit-appearance: none;
  appearance: none;
  width: 50px;
  height: 28px;
  background: #ccc;
  border-radius: 50px;
  position: relative;
  outline: 0;
  transition: background 0.3s;
}

.theme-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.theme-switch:checked::before {
  transform: translateX(22px);
}

#finalizar-compra-btn {
  background-color: #04b9da;
  /* Cor inicial, ajustável */
  color: #fff;
  transition: background-color 0.3s;
}

#finalizar-compra-btn:hover {
  background-color: #4caf50;
  /* Cor mais escura ao passar o mouse, ajustável */
}

/* Estilos para a notificação flutuante */
/* Estilos para a notificação flutuante */
.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background-color: #4caf50;
  /* Verde para sucesso */
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1000;
  text-align: center;
  font-size: 18px;
  /* Tamanho da fonte ajustável */
  max-width: 90%;
  /* Limita a largura em telas pequenas */
}

.notification.error {
  background-color: #dc3545;
  /* Vermelho para erro */
}

.notification.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#notification-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Permite cliques através do container */
}

/* Remover esse linha notification completa ou deixar o de cima  */
/* Container de Notificações */
#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  max-width: 90%;
  width: 300px;
}

@media (max-width: 600px) {
  #notification-container {
    right: 5%;
    left: 5%;
    width: 90%;
  }
}

/* Estilo das Notificações */
.notification {
  background: #333;
  color: white;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.3s ease-out;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  background: #4CAF50;
  border-left: 5px solid #2E7D32;
}

.notification.error {
  background: #f44336;
  border-left: 5px solid #c62828;
}