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

body {
  font-family: 'Roboto', sans-serif;
  background: #ffffff;
  color: #333;
}

.container {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Ativa/desativa sidebar no modo mobile */
.sidebar {
  transition: none !important;
}
#revendasContainer {
  display: block;
  padding: 20px;
  border: 1px solid #ccc;
  margin-top: 20px;
}

.sidebar li {
  padding: 8px 10px;
  cursor: pointer;
}

.sidebar li.active {
  background-color: #333;
}

.sidebar ul ul {
  margin-left: 15px;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: absolute;
    top: 50px;
    left: 0;
    background: #1f1f1f;
    width: 200px;
    z-index: 10;
    display: none;
  }

  .sidebar.active {
    display: block;
  }
}

/* Estatísticas */
.stats {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.stat-box {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 23%;
}

.stat-box h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2c5364;
}

.stat-box p {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

/* Cartões Interativos */
.card-container {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 48%;
}

.card h3 {
  color: #2c5364;
  margin-bottom: 15px;
}

.card ul {
  list-style-type: none;
  padding-left: 20px;
}

.card ul li {
  margin-bottom: 10px;
  color: #555;
}

.card ul li::before {
  content: "• ";
  color: #25d366;
}

/* Atalhos */
.atalhos {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.shortcut-button {
  padding: 12px 25px;
  background-color: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: bold;
}

.shortcut-button:hover {
  background-color: #1eba5a;
}
/* Botão de editar */
.edit-button {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.edit-button:hover {
  background-color: #1eba5a;
}

/* Área de edição do texto */
#editObjetivos {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  color: #333;
}

/* Botão salvar objetivos */
#salvarObjetivos {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

#salvarObjetivos:hover {
  background-color: #1eba5a;
}

/* Esconder elementos ao editar */
.hidden {
  display: none;
}

#formPerfil {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}
#formPerfil input {
  padding: 8px;
  font-size: 16px;
}
#formPerfil button {
  padding: 10px;
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
#formPerfil button:hover {
  background-color: #45a049;
}

.mobile-topbar {
  background: #333;
  color: white;
  padding: 10px 15px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-topbar h3 {
  flex: 1;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
}
.user-info-box {
  background: #f5f5f5;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 16px;
}
.user-info-box ul {
  list-style: none;
  padding-left: 0;
}
.user-info-box li {
  margin: 8px 0;
}

.mobile-topbar button {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.sidebar {
  width: 250px;
  background: #333;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.sidebar h2 {
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 10px 15px;
  margin-bottom: 12px;
  color: #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar li:hover, .sidebar li.active {
  background: #1e90ff;
  color: white;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 30%;
}

main.content {
  margin-left: 250px;
  padding: 90px 30px 30px;
  background: #f9f9f9;
  transition: margin-left 0.3s;
}
.boas-vindas-card {
    max-width: 360px;
    margin: 30px auto 40px;
    padding: 20px;
    background: linear-gradient(135deg, #242424, #333);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    border: 1px solid #444;
  }

  .boas-vindas-card h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00ffc3;
  }

  .boas-vindas-card p {
    font-size: 1rem;
    margin: 6px 0;
    color: #ccc;
  }

  .boas-vindas-card span {
    font-weight: bold;
    color: #fff;
  }
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.stat-box {
  flex: 1 1 30%;
  background: #f1f1f1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 250px;
}

.bot-card, .clientes-card, .config-card {
  background: #f1f1f1;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

h1, h2, h3 {
  font-weight: bold;
  margin-bottom: 10px;
}

button {
  background: #1e90ff;
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  margin: 5px 5px 5px 0;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background: #4682b4;
}

#opcoesConfig {
  margin-top: 10px;
  padding: 15px;
  background: #e9e9e9;
  border-radius: 8px;
}

#opcoesConfig p {
  margin-bottom: 10px;
}

input, select {
  background: #e0e0e0;
  color: #333;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 6px;
  margin: 5px 10px 10px 0;
}

footer {
  background: #1f1f1f;
  color: #999;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  margin-top: auto;
}

footer a {
  color: #1e90ff;
  text-decoration: none;
}

.hidden {
  display: none;
}

 /* Stats */
    .stats {
      display: flex;
      gap: 20px;
      justify-content: center;
      margin-bottom: 30px;
    }

    .stat-box {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      text-align: center;
      width: 180px;
    }

    .stat-box h3 {
      font-size: 18px;
      margin-bottom: 10px;
    }

    .atalhos {
      display: flex;
      justify-content: center;
      gap: 10px;
    }

    .shortcut-button {
      background-color: #3498db;
      color: white;
      padding: 10px 15px;
      font-size: 14px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .shortcut-button:hover {
      background-color: #2980b9;
    }

    /* Responsividade */
    @media (max-width: 768px) {
   
     

      .stats {
        flex-direction: column;
        gap: 15px;
      }

      .stat-box {
        width: 100%;
      }

      .atalhos {
        flex-direction: column;
        gap: 15px;
      }

      .shortcut-button {
        width: 100%;
        font-size: 16px;
      }
    }
/* ====== BASE MODAL ====== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

/* ====== FORMULÁRIO DO MODAL ====== */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-form input,
.modal-form textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.modal-form input:focus {
  border-color: #1e90ff;
  outline: none;
}

.modal-form button {
  background-color: #4CAF50;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-form button:hover {
  background-color: #45a049;
}

.modal-content h3 {
  margin-bottom: 15px;
  color: #1e90ff;
}

.fechar {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
}

/* ====== BOTÕES DE AÇÃO ====== */
.bot-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.bot-acoes button {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.bot-acoes button:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

/* ====== TEXTAREA PERSONALIZADO ====== */
#mensagemEditavel {
  width: 100%;
  height: 450px;
  resize: none;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  padding: 10px;
  margin-top: 10px;
  box-sizing: border-box;
}

/* ====== MENU MENSAGENS ====== */
.mensagens-menu ul {
  list-style-type: none;
  padding-left: 20px;
}

.mensagens-menu li {
  padding: 5px 0;
  cursor: pointer;
}

.mensagens-menu li:hover {
  background-color: #f0f0f0;
}

/* ====== FORMULÁRIO CLIENTE ====== */
#formClienteContainer {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
}

#formCliente input,
#formCliente textarea,
#formCliente button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 6px;
  border: none;
  box-sizing: border-box;
}

#formCliente textarea {
  resize: vertical;
}

/* ====== MODAL BOAS VINDAS E EDIÇÃO ====== */
#modalBoasVindas,
#modalEdicaoMensagem {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalBoasVindas .modal-content,
#modalEdicaoMensagem .modal-content {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
}

#modalBoasVindas #modalTitulo h2,
#modalEdicaoMensagem #modalTitulo h2 {
  font-size: 26px;
  font-weight: bold;
  color: #1e90ff;
  margin-bottom: 15px;
}

#modalBoasVindas #modalCorpo p,
#modalEdicaoMensagem #modalCorpo label {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

#modalEdicaoMensagem #modalCorpo textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

.modal-footer {
  text-align: center;
  margin-top: 20px;
}

/* ====== RESPONSIVIDADE GERAL ====== */
@media (max-width: 768px) {
  .modal-content {
    padding: 15px;
    max-height: 85vh;
  }

  .modal-content h2 {
    font-size: 22px;
  }

  .modal-content p {
    font-size: 14px;
  }

  .modal-form input,
  .modal-form button {
    font-size: 16px;
    padding: 12px;
  }

  .bot-acoes button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 10px;
    max-width: 95%;
    max-height: 75vh;
  }

  .modal-content h2 {
    font-size: 20px;
  }

  .modal-content p {
    font-size: 13px;
  }

  .fechar {
    font-size: 20px;
  }

  #mensagemEditavel {
    height: 300px;
    font-size: 13px;
  }

  #modalBoasVindas #modalTitulo h2,
  #modalEdicaoMensagem #modalTitulo h2 {
    font-size: 20px;
  }

  #modalBoasVindas #modalCorpo p,
  #modalEdicaoMensagem #modalCorpo label {
    font-size: 14px;
  }
}

 #aba-editar-mensagens {
    padding: 20px;
    font-family: 'Roboto', sans-serif;
  }

  .mensagens-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
  }

  .mensagens-menu {
    flex: 1;
    min-width: 200px;
    background: #f4f4f4;
    border-radius: 8px;
    padding: 10px;
  }

  .mensagens-menu ul {
    list-style: none;
    padding: 0;
  }

  .mensagens-menu li {
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
    background: #fff;
    transition: background 0.3s;
  }

  .mensagens-menu li:hover,
  .mensagens-menu li.ativo {
    background: #dcdcdc;
    font-weight: bold;
  }

  .mensagem-preview {
    flex: 2;
    min-width: 280px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .phone-frame {
    border: 2px solid #333;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    background: #000;
    color: white;
  }

  .phone-header {
    background: #333;
    padding: 10px;
    text-align: center;
    font-weight: bold;
  }

  .phone-body {
    background: #e5e5e5;
    color: black;
    padding: 10px;
    height: 200px;
  }

  .phone-body textarea {
    width: 100%;
    height: 100%;
    resize: none;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
  }

  .botoes-mensagem {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
  }

  .botoes-mensagem button {
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    transition: background 0.3s;
  }

  .botoes-mensagem button:hover {
    background: #45a049;
  }

  .botoes-mensagem button:nth-child(2) {
    background: #f44336;
  }

  .botoes-mensagem button:nth-child(2):hover {
    background: #d32f2f;
  }

  @media (max-width: 768px) {
    .mensagens-container {
      flex-direction: column;
      align-items: center;
    }

    .mensagens-menu, .mensagem-preview {
      width: 100%;
    }
  }

button {
  background-color: #1e90ff;
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #4682b4;
}

.modal-footer {
  text-align: right;
  margin-top: 20px;
}

.hidden {
  display: none !important;
}


.conectar-container {
  max-width: 500px;
  margin: 20px auto;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px #ccc;
}

.conectar-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.conectar-container label {
  font-weight: bold;
  font-size: 14px;
}

.conectar-container input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.botoes-conexao {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.botoes-conexao button {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.botoes-conexao button:hover {
  background-color: #45a049;
}

.botoes-conexao button:first-child {
  background-color: #2196F3;
}

.botoes-conexao button:first-child:hover {
  background-color: #1976D2;
}

#resultadoConexao {
  margin-top: 20px;
  padding: 15px;
  text-align: center;
  border-radius: 6px;
  background: #eef;
}


@media (max-width: 768px) {
     .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  main.content {
    margin-left: 0;
    padding-top: 80px;
  }
  .mensagens-container {
    flex-direction: column;
    align-items: center;
  }

  .mensagens-menu,
  .mensagem-preview {
    width: 100%;
  }

  #modalEdicaoMensagem .modal-content {
    padding: 15px;  /* Adjust padding for smaller screens */
    width: 90%;
    max-width: 500px;  /* Ensures modal does not stretch too wide on larger screens */
  }

  #modalEdicaoMensagem #modalTitulo h2 {
    font-size: 22px;  /* Slightly smaller title font size */
  }

  #modalEdicaoMensagem #modalCorpo label,
  #modalEdicaoMensagem #modalCorpo textarea {
    font-size: 14px;  /* Smaller font size for labels and textarea */
  }
  
  .botoes-mensagem button {
    font-size: 14px; /* Adjust button font size for smaller screens */
    padding: 8px 15px;  /* Smaller padding */
  }
}
.botoes-acoes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.botoes-acoes button {
  flex: 1;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}
.paginacao {
  text-align: center;
  margin-top: 15px;
}

.paginacao button {
  margin: 2px;
  padding: 6px 12px;
  cursor: pointer;
  border: 1px solid #ccc;
  background-color: #121212;
}

.pagina-ativa {
  background-color: #fff;
  color: white;
}
#aba-conectar-bot {
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#codigoPareamentoContainer {
  background-color: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button {
  font-size: 16px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}
#modalCodigoPareamento {
  display: none; /* Inicialmente o modal está oculto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

#modalCodigoPareamento .content {
  background: white;
  padding: 20px;
  border-radius: 6px;
  text-align: center;
}
