/* Estilos Gerais */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  color: #000021; /* Azul escuro para melhor legibilidade */
  overflow-x: hidden; /* Evita a barra de rolagem horizontal */
}

body.dark-mode {
  background-color: #000;
  color: #fff;
}

/* Top Menu */
.top-menu {
  width: 100%;
  background-color: #000021; /* Azul escuro */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0; /* Ajustado o espaçamento no topo e na parte inferior */
  position: fixed; /* Fixa o menu no topo */
  top: 0; /* Posiciona o menu no topo da página */
  left: 0; /* Garante que o menu fique alinhado à esquerda */
  z-index: 1000; /* Garante que o menu fique acima de outros elementos */
}

body.dark-mode .top-menu {
  background-color: #1f1f1f;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  margin-left: 20px; /* Adiciona um espaçamento à esquerda */
  color: #fff; /* Branco */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: 20px; /* Adiciona um espaçamento à direita para evitar a sobreposição */
  margin-left: 20px; /* Adiciona um espaçamento à esquerda para evitar a sobreposição */
}

/* Esconde o menu de navegação e exibe o ícone de hambúrguer em telas menores */
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

body.dark-mode .nav-links a {
  color: #e0e0e0;
}

.nav-links.active {
  display: flex;
}

.nav-links img {
  width: 24px;
  height: 24px;
  margin-left: 20px;
}

.nav-links i {
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

body.dark-mode .nav-links i {
  color: #ff8534; /* Laranja claro */
}

/* Navegação do Admin */
.admin-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 80px 0 20px 0; /* Espaçamento superior e inferior */
}

.admin-nav a {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.admin-nav a:hover {
  background: #0056b3;
  transform: scale(1.05);
}

body.dark-mode .admin-nav a {
  background: #0056b3;
}

.container {
  margin-top: 0px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.3s;
}

body.dark-mode .container {
  background-color: #2d2d2d;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h1, h2 {
  color: #333;
  text-align: center;
  transition: color 0.3s;
}

body.dark-mode h1,
body.dark-mode h2 {
  color: #ff8534;
}

.form-group {
  margin-bottom: 15px;
}

input[type="text"] {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s;
}

body.dark-mode input[type="text"] {
  background-color: #404040;
  border-color: #555;
  color: #e0e0e0;
}

button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

body.dark-mode button:not(.delete) {
  background-color: #ff8534;
}

button.delete {
  background-color: #f44336;
  margin-left: 10px;
}

body.dark-mode .delete {
  background-color: #d32f2f;
}

.origens-list {
  margin-top: 20px;
}

.origem-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #f9f9f9;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #eee;
  transition: all 0.3s;
}

body.dark-mode .origem-item {
  background-color: #3d3d3d;
  border-color: #4d4d4d;
}

.delete {
  flex-shrink: 0;
}

.messages {
  margin: 15px 0;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s;
}

.success {
  background-color: #d4edda;
  color: #155724;
}

body.dark-mode .success {
  background-color: #2d6246;
  color: #b8f2d0;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
}

body.dark-mode .error {
  background-color: #6b2a2a;
  color: #ffb3b3;
}

.origem-url {
  color: #007bff;
  word-break: break-all;
  margin: 5px 0;
  transition: color 0.3s;
}

body.dark-mode .origem-url {
  color: #4dabf7;
}

.copy-btn {
  background-color: #007bff;
  margin-left: 5px;
  padding: 6px 10px;
  font-size: 0.8em;
  border-radius: 3px;
  transition: all 0.3s;
}

body.dark-mode .copy-btn {
  background-color: #4dabf7;
  color: #002851;
}

.origem-info {
  flex-grow: 1;
  margin-right: 15px;
}

@media (max-width: 768px) {
  .origem-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .delete {
    margin-top: 10px;
    width: 100%;
  }
  
  .copy-btn {
    margin-left: 0;
    margin-top: 5px;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #000021;
    padding: 15px;
    border-radius: 5px;
  }
  
  body.dark-mode .nav-links {
    background-color: #1f1f1f;
  }
  
  .hamburger {
    display: block;
    color: white;
    margin-right: 20px;
  }
  
  .nav-links.active {
    display: flex;
  }
}

/* Adicione estas regras ao final do seu CSS */
.webhooks-config {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

body.dark-mode .webhooks-config {
    background-color: #2d2d2d;
    border-color: #404040;
}

.webhook-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.webhook-entry label {
    flex: 0 0 120px;
    color: #666;
}

body.dark-mode .webhook-entry label {
    color: #ccc;
}

.webhook-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s;
}

body.dark-mode .webhook-input {
    background-color: #404040;
    border-color: #555;
    color: #e0e0e0;
}

.save-webhook-btn {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-webhook-btn:hover {
    background-color: #45a049;
}

body.dark-mode .save-webhook-btn {
    background-color: #388e3c;
}

.origem-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-webhooks {
    cursor: pointer;
    color: #007bff;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.toggle-webhooks:hover {
    color: #0056b3;
}

.toggle-webhooks i {
    transition: transform 0.3s;
}

body.dark-mode .toggle-webhooks {
    color: #4dabf7;
}

body.dark-mode .toggle-webhooks:hover {
    color: #2d88d8;
}

.webhooks-config {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

body.dark-mode .webhooks-config {
    background-color: #2d2d2d;
    border-color: #404040;
}