:root {
    --sidebar-width: 180px;
}

body {
    max-width: 100vw; /* Garante que o corpo nunca ultrapasse a largura da tela */
    overflow-x: hidden; /* Remove qualquer rolagem horizontal */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background: url('../images/background-futuristic.jpg') no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden; /* Impede rolagem horizontal */
}

.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  backdrop-filter: blur(6px);
}

.login-form {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  color: #fff;
  width: 100%;
  max-width: 400px;
}

.login-title {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
}

.login-subtitle {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}

.form-control {
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.3);
  color: #999;
  border: none;
}

.btn-login {
  width: 100%;
  background-color: #00aaff;
  border: none;
}

.alert {
  text-align: center;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background-color: #343a40;
  position: fixed;
  top: 0;
  left: 0;
  padding-top: 20px;
  transition: all 0.3s ease;
  z-index: 10;
}

.sidebar .nav-link {
  font-size: 1rem;
  padding: 10px 15px;
  display: block;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background-color: #495057;
  color: #ffffff;
}

.sidebar h3 {
  font-size: 1.5rem;
  color: #ffffff;
}

#content {
  margin-left: 250px;
  padding: 20px;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* Responsivo: Sidebar oculta em telas menores */
@media (max-width: 768px ) {
  .sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
    position: fixed;
  }

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

  #content {
    margin-left: 0;
  }
}

.btn#toggle-sidebar {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 11;
}

/* Botão de alternância do menu lateral */
#toggle-sidebar {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
}
/* Título da seção */
.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00d4ff;
  text-shadow: 0px 0px 5px rgba(0, 212, 255, 0.8);
}

/* Garantir que a tabela dentro do "Meus Robôs" seja responsiva */
.table-responsive {
    width: 100%; /* A tabela ocupará toda a largura disponível */
    overflow-x: auto; /* Adiciona rolagem horizontal se necessário */
}

.table {
    width: 100%; /* Força a tabela a usar 100% da largura disponível */
    table-layout: auto; /* Permite ajuste dinâmico das colunas */
}

th, td {
    white-space: nowrap; /* Impede que o texto quebre em várias linhas */
}

.ajusta-texto-celula
{
    max-width: 100px; /* Ajusta dinamicamente ao tamanho da célula */
    white-space: nowrap; /* Impede que o texto quebre em várias linhas */
    overflow: hidden; /* Esconde o texto que ultrapassa o limite */
    text-overflow: ellipsis; /* Adiciona "..." quando o texto for cortado */
}


.popup {
    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;
    z-index: 1000;
}

.popup-content input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 2px solid #007bff; /* Azul destacado */
    border-radius: 5px;
    font-size: 16px;
    background-color: #f8f9fa; /* Fundo claro para melhor contraste */
    color: #333;
}

.popup-content input[type="text"]:focus {
    border-color: #0056b3; /* Azul mais escuro ao focar */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 91, 187, 0.5);
}

.popup-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.popup-buttons-center {
    display: flex;
    justify-content: center;
}

.popup {
    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;
    z-index: 9999; /* Garante que o popup sempre aparece sobre tudo */
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%; /* Ajusta para telas menores */
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Estilização da mensagem dentro do popup */
.popup-message {
    margin-top: 10px;
    font-weight: bold;
    color: red;
}

.popup-content input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #007bff; /* Azul destacado */
    border-radius: 5px;
    font-size: 16px;
    background-color: #f8f9fa; /* Fundo claro para melhor contraste */
    color: #333;
    transition: border-color 0.3s ease-in-out;
}

.popup-content input[type="password"]:focus {
    border-color: #0056b3;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 91, 187, 0.5);
}

/* Mantém as bordas da senha mesmo quando há erro */
.popup-content input[type="password"].error {
    border-color: red;
}

.editavel {
    background-color: rgba(255, 255, 255, 0.9); /* 10% mais claro */
    transition: background-color 0.2s ease-in-out;
    color: #333;
}

.editavel:focus {
    background-color: #fff; /* Fica branco ao focar */
    outline: none;
    border: 2px solid #007bff;
}

#copyMessage {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    z-index: 1000;
    display: inline-block;
}

/* Mensagem "Copiado!" dinâmica */
.copied-message {
    position: absolute;
    padding: 8px 12px;
    background-color: #28a745;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 1000;
    opacity: 0;
    transform: translateX(100px); /* Começa deslocado para a direita */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.copied-message.show {
    opacity: 1;
    transform: translateX(-50px); /* Desliza para a esquerda */
}

/* Reduz o botão de copiar, mantendo o ícone grande */
.copy-button {
    height: 35px;
    width: 30px;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#statusWappLabel {
    font-size: 25px; /* Ajuste conforme necessário */
    font-weight: bold; /* Opcional: deixa o texto mais destacado */
}

.btn-qr-code {
    display: block;
    margin-top: 15px;
}

@keyframes quicar {
    0% { transform: translateX(10px); } /* Começa 10px à direita */
    25% { transform: translateX(0); } /* Volta ao centro */
    50% { transform: translateX(10px); } /* Vai para a direita de novo */
    75% { transform: translateX(-10px); } /* Move para a esquerda */
    80% { transform: translateX(-10px) rotate(-3deg); } /* Prepara o tremor */
    84% { transform: translateX(-10px) rotate(3deg); } /* Tremor leve */
    89% { transform: translateX(-10px) rotate(-3deg); } /* Tremor para o outro lado */
    100% { transform: translateX(10px) rotate(0deg); } /* Volta para a posição inicial */

    /* A pausa ocorre mantendo o texto parado por 2 segundos */
}

.bouncing-text {
    animation: quicar 1.0s infinite ease-in-out;
    display: inline-block;
    font-size: 0.8em;
    color: gray;
    margin-top: -5px;
}

.form-select {
    border: 2px solid #007bff; /* Cor padrão do Bootstrap */
    border-radius: 0.375rem; /* Mantém o mesmo arredondamento dos inputs */
    padding: 0.575rem 0.75rem; /* Ajusta o espaçamento interno */
}

.from-check {
	border: 2px solid #007bff; /* Cor padrão do Bootstrap */
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%; /* Ajusta melhor para telas menores */
        max-width: 350px;
    }
}


