    :root {
      --primary-text-color: #ffffff;
      --secondary-text-color: #e0e0e0;
      --accent-color: #64ffda; 
      --button-bg-color: rgba(255, 255, 255, 0.08);
      --button-hover-bg-color: rgba(255, 255, 255, 0.15);
      --card-bg-color: #1c1c1e;
      --body-bg: linear-gradient(135deg, #1f1c2c, #121212);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', sans-serif; /* Fonte moderna */
      min-height: 100vh;
      background: var(--body-bg);
      color: var(--primary-text-color);
      overflow-x: hidden; /* Evitar scroll horizontal em telas pequenas */
      -webkit-font-smoothing: antialiased; /* Melhor renderização de fontes */
      -moz-osx-font-smoothing: grayscale;
    }


    .linktree, #linktreeContainerPreview {
      width: 100%;
      max-width: 450px;
      background: var(--card-bg-color);
      border-radius: 20px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
      color: var(--primary-text-color);
      position: relative;
      overflow: hidden;
      margin: 20px;
      transition: background 0.5s ease, color 0.5s ease;
    }

    .linktree-header {
      text-align: center;
      padding: 2.5rem 1.5rem; /* Mais padding */
      position: relative; /* Para z-index se necessário */
    }

    .linktree-header img, .headerModal img {
      width: 100px; /* Ajustado */
      height: 100px; /* Ajustado */
      border-radius: 50%;
      object-fit: cover;
box-shadow: 
    0 0 0 4px var(--accent-color),
    0 8px 20px rgba(0,0,0,0.3);
      margin-bottom: 1rem;
      transition: box-shadow 0.3s ease;
    }

    .linktree-header h1, .headerModal h1 {
      margin-top: 1rem;
      font-size: 2rem; /* Ajustado */
      font-weight: 700;
      letter-spacing: 0.5px;
      color: var(--primary-text-color);
      transition: color 0.3s ease;
    }

    .linktree-header p, .headerModal p {
      font-size: 1rem; /* Ajustado */
      font-weight: 400; /* Mais leve */
      color: var(--secondary-text-color);
      margin-top: 0.5rem;
      line-height: 1.6;
      transition: color 0.3s ease;
    }

    .linktree-links {
      padding: 1.5rem 2rem;
      display: flex;
      flex-direction: column;
      gap: 1rem; /* Espaçamento consistente */
    }

    .linktree-links a {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem 1.5rem; /* Mais padding interno */
      border-radius: 32px; /* Bordas mais arredondadas */
      font-size: 1rem; /* Ajustado */
      font-weight: 500;
      text-decoration: none;
      color: var(--primary-text-color);
      background-color: var(--button-bg-color);
      border: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil para glassmorphism */
      backdrop-filter: blur(5px); /* Efeito de vidro */
      -webkit-backdrop-filter: blur(5px);
      transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                  background-color 0.2s ease,
                  box-shadow 0.2s ease;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .linktree-links a:focus-visible { /* Adiciona um anel de foco para acessibilidade se o :focus não for suficiente */
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }

    .linktree-links a:hover, .linktree-links a:focus {
      transform: translateY(-4px) scale(1.02);
      background-color: var(--button-hover-bg-color);
      box-shadow: 0 8px 20px rgba(0,0,0,0.25);
      filter: brightness(1.1) drop-shadow(0 0 5px var(--accent-color));
    }

    .linktree-links a i {
      margin-right: 0.85rem;
      color: var(--accent-color); /* Cor de destaque para ícones */
      font-size: 1.2em; /* Ícones um pouco maiores */
      transition: color 0.3s ease;
    }

    .linktree-footer {
      text-align: center;
      padding: 1.5rem 1rem;
      font-size: 0.9rem;
      background: rgba(0,0,0,0.2); /* Fundo sutilmente diferente */
      color: var(--secondary-text-color);
      border-top: 1px solid rgba(255,255,255,0.05);
    }

    .linktree-footer a {
      color: var(--primary-text-color);
      text-decoration: none;
      font-weight: 600;
      transition: color 0.2s ease;
    }

    .linktree-footer a:hover {
      color: var(--primary-text-color);
      text-decoration: underline;
    }

h1 {
  margin-top: 1rem;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

.botaoUp {
  position: fixed;
  bottom: 60px;
  right: 5px;
  background-color: #011640;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.botaoUp:hover {
  background-color: #0D0D0D;
  color: #64ffda;
}

#loaderContainer {
  display: flex;
  position: fixed;
  z-index: 1000000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
}

.required {
  color: red;
  font-weight: bold;
} 

.loaderNosso i {
  font-size: 40px;
  color: #333;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.icon-picker-modal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.icon-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  font-size: 24px;
  color: #4a4a4a;
}
.icon-picker-item:hover {
  transform: scale(1.2);
  color: #3273dc;
}
.icon-picker-item span {
  margin-top: 5px;
  font-size: 0.9rem;
  color: #4a4a4a;
}

.fixed-center {
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
z-index: 1000; /* Para garantir que fique sobre outros elementos */
background: #fff;
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
text-align: center;
max-width: 400px;
margin: auto;
}

.copy-box {
display: flex;
justify-content: center;
align-items: center;
border: 1px solid #ddd;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.copy-box input {
flex: 1;
padding: 10px 15px;
font-size: 14px;
color: #555;
border: none;
outline: none;
background-color: #f9f9f9;
border-right: 1px solid #ddd;
}

.copy-box button {
display: flex;
align-items: center;
gap: 5px;
padding: 10px 20px;
font-size: 14px;
font-weight: bold;
color: #fff;
background-color: #4caf50;
border: none;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-box button i {
font-size: 16px;
}

.copy-box button:hover {
background-color: #45a049;
}

.copy-box button:active {
transform: scale(0.98);
}

.section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  column-gap: 32px;
  flex-wrap: wrap;
  overflow: hidden;
}

.control{
  color: black;
    font-size: 20px;
}

#saveBtn.loading::after {
  content: '';
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#mensagem {
  position: fixed;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  padding: 15px 20px;
  border-radius: 8px; 
}

.success {
  background-color: #4CAF50;
  color: white;
  border: solid white 2px;
}

.erro {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.icon-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.icon-picker-item:hover {
  background-color: #f0f0f0;
}

.icon-picker-item i {
  font-size: 24px;
  color: #007bff; /* Cor inicial */
  transition: color 0.3s ease;
}

.icon-picker-item:hover i {
  color: #0056b3; /* Cor ao passar o mouse */
}

.icon-picker-item span {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

#map-container {
  margin-top: 20px;
  width: 100%;
}

.sidebar {
  width: 200px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #23272f;
  padding-top: 1rem;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.menu-list a {
  color: white;
}

.theme-option:hover {
  scale: 1.05;
  border: solid 1px #3333331a;
}

.sidebar .menu-list li a {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  margin-top: 1rem;
}
.sidebar .menu-list li a i {
  margin-right: 0.5rem;
}
.mobile-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #23272f;
  border-top: 1px solid #0d0d0d;
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.25);
  z-index: 4;
}

.mobile-menu a {
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
}

.menu-item-span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.menu-item-span i {
  font-size: 1.3rem;
}


.with-sidebar {
  margin: auto;
  margin-left: 220px;
}

#qrcode-container {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column; /* Padrão para mobile */
  align-items: center;
  justify-content: center;
  width: 100%; /* Ocupa toda a largura no mobile */
}

#qrcode {
  /* Estilos iniciais para o quadrado reservado */
  width: 150px;
  height: 150px;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 0.9em;
}

#saveBtn {
  transition: all 0.3s ease;
  margin-top: 1rem;
}

#saveBtn:hover {
  scale: 1.025;
}
.links-container {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
}
.progress-bar-container {
  display: flex;
  align-items: center;
}

.progress-count {
  margin-left: 10px;
  font-weight: bold;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 0.5em;
    border-bottom: 1px solid #eee;
}

#clicksLinksContainer .link-item {
    color: black;
}

.link-item:last-child {
    border-bottom: none;
}

#visualizacoesCount {
  color: black;
}

.link-icon {
    margin-right: 0.5em;
}

.link-label {
    flex-grow: 1;
}

.link-clicks {
    font-weight: bold;
}

/* Estilos adicionais para deixar mais 'moderno' (adaptar ao seu gosto) */
.modal-card-head {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.modal-card-title {
  color: #363636;
}

#estadisticasContainer {
  padding: 1em;
}

#visualizacoesContainer, #clicksLinksContainer {
  margin-bottom: 1.5em;
}

.titulo {
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

    #linktreeForm{
      padding: 30px;background-color: white;border-radius: 15px;
      box-shadow: 0 4px 5px 4px rgba(0, 0, 0, 0.2);
      min-width: 100%;
    }

.file-name {
  color: #333;
}

#mensagem.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 25px;
  color: white;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
}

#mensagem.toast.show {
  opacity: 1;
  bottom: 30px;
}

#mensagem.toast.success { background-color: #28a745; }
#mensagem.toast.erro { background-color: #dc3545; }

.form-section {
        background-color: #f9f9f9;
        border-radius: 8px;
        padding: 1rem;
        margin-bottom: 1.5rem;
        border: 1px solid #dbdbdb;
}
.form-section summary {
        font-weight: bold;
        cursor: pointer;
        color: #0056b3;
}
.form-section summary {
  display: flex;
  justify-content: space-between; /* Coloca o título à esquerda e o ícone à direita */
  align-items: center;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* Remove a seta padrão do navegador */
  padding: 0.5rem 0;
}

/* Remove a seta padrão no Webkit (Chrome/Safari) */
.form-section summary::-webkit-details-marker {
  display: none;
}

/* Estilo do ícone da seta */
.accordion-icon {
  color: #a0a0a0; /* Uma cor sutil */
  transition: transform 0.3s ease-in-out; /* AQUI ESTÁ A ANIMAÇÃO! */
}

/* Quando a seção está aberta, o ícone gira */
.form-section[open] > summary .accordion-icon {
  transform: rotate(180deg);
}
#themeOptions {
  display: flex;
  gap: 20px;
  overflow-x: auto; /* Mantém a rolagem funcional */
  padding: 12px;
  cursor: grab; /* Indica que a área é "agarrável" */
  
  /* Esconde a barra de rolagem */
  scrollbar-width: none;  /* Para Firefox */
  -ms-overflow-style: none;  /* Para Internet Explorer e Edge */
}

/* Esconde a barra de rolagem para navegadores WebKit (Chrome, Safari) */
#themeOptions::-webkit-scrollbar {
  display: none;
}

/* Muda o cursor para "agarrando" quando o clique está ativo */
#themeOptions.active {
  cursor: grabbing;
}
  .columns {
    max-width: 100%;
  }
  .column {
    padding: 0;
  }
@media (max-width: 768px) {

  .section{
    display: block;
    max-width: 420px;
    margin: auto;
    padding: 0;
  }
  
  #linktreeForm{border-radius: 0;margin: 0; padding-bottom: 120px;}
  .container{border-radius: 0 !important;}
  .link-preview {border-radius: 0;}
  .columns {
    max-width: none;
  }

#qrcode-container {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
}

#qrcode {
  border: none;
}

  .linktree {
        border-radius: 0;
        margin: 0;
        box-shadow: none;
  }
  .linktree-header h1, .headerModal h1 {
        font-size: 1.8rem;
  }
  .linktree-header p, .headerModal p {
        font-size: 0.9rem;
  }
  #linktreeContainerPreview {
      width: auto;
      margin: 0;
  }

.sidebar {
      display: none;
}

 .columns {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media screen and (min-width: 768px) {
    .is-hidden-desktop {
        display: none !important;
    }
    #linktreeForm{
      max-width: 100%;
    }
    .control.inputLink {
      flex: 1;
    }
}
