
/* Estilos gerais */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f0f4f8; /* Cor de fundo suave */
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

h1, h2 {
    color: #2c3e50;
}

/* Estilos do Formulário de Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.login-card {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    box-sizing: border-box;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: #2980b9;
}

.login-message {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
}

.dashboard-container {
  padding: 40px 20px;
  display: none;
  
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-title {
    font-size: 32px;
    font-weight: bold;
}

.logout-button {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.logout-button:hover {
    background-color: #c0392b;
}

.dashboard-main {
    margin-top: 50px;
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 24px;
    color: #34495e;
    margin-bottom: 20px;
    font-weight: 200;
}

.status-info {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.status-text {
    font-weight: bold;
}

.status-connected {
    color: #27ae60;
}

.status-disconnected {
    color: #e74c3c;
}

.connect-button {
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.connect-button:hover {
    background-color: #2980b9;
}


.qr-container {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza verticalmente */
    align-items: center; /* Centraliza horizontalmente */
    text-align: center; /* Garante que o texto também seja centralizado */
    height: 100%; /* Opcional, para ocupar a altura total do contêiner pai */
}

.qr-container h2,
.qr-container p {
    margin: 10px 0;
}

.qr-container img {
    max-width: 100%;
    height: auto;
}


.qr-image {
    max-width: 200px;
    height: auto;
    border: 5px solid #bdc3c7;
    border-radius: 8px;
}

.qr-text {
    font-size: 14px;
    color: #95a5a6;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #34495e;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
}

.send-button {
    background-color: #2ecc71;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}

.send-button:hover {
    background-color: #27ae60;
}
.stop-button {
    background-color: #e74c3c;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}
.stop-button:hover {
    background-color: #c0392b;
}

.messages-list {
    max-height: 300px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #ecf0f1;
}

.message-item {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
}
.file-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.file-input-label {
    background-color: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
}
.file-input-display {
    font-size: 14px;
    color: #7f8c8d;
}
#image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}
/* Estilo para o cabeçalho principal */
.main-header2 {
  /* Fixa o cabeçalho no topo da tela */
  position: fixed;
  top: 0;
  left: 0;
  /* Garante que o cabeçalho ocupe toda a largura */
  width: 100%;
  /* Fundo verde e altura para o cabeçalho */
  background-color: #4CAF50; /* Um tom de verde */
  /* Adiciona uma sombra sutil para dar profundidade */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Garante que o cabeçalho fique acima de outros elementos */
  z-index: 1000;
}

/* Estilo para a navegação interna */
.main-nav2 {
  /* Usa flexbox para alinhar os itens horizontalmente */
  display: flex;
  /* Espaço entre os itens (logo à esquerda, botões à direita) */
  justify-content: space-between;
  /* Alinha os itens verticalmente no centro */
  align-items: center;
  /* Adiciona um espaçamento interno para não ficar grudado nas bordas */
  padding: 15px 20px;
}

/* Estilo para o título (logo) */
.logo2 {
  /* Cor branca para o texto */
  color: #fff;
  /* Aumenta o tamanho e a espessura da fonte */
  font-size: 24px;
  font-weight: bold;
  /* Remove a margem padrão do h1 */
  margin: 0;
}

/* Estilo para os links e botões de sair */
.logout-button2 {
  /* Cor do texto branca */
  color: #fff;
  /* Remove o sublinhado dos links */
  text-decoration: none;
  /* Adiciona um espaçamento para separar os botões */
  margin-left: 15px;
  /* Estiliza o botão */
  background-color: transparent; /* Fundo transparente */
  border: 1px solid #fff; /* Borda branca */
  padding: 8px 16px;
  border-radius: 5px;
  /* Adiciona transição suave para o efeito hover */
  transition: all 0.3s ease;
  font-size: 14px; /* Define um tamanho de fonte consistente para ambos */
}

/* Efeito de hover nos botões */
.logout-button2:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Fundo branco semi-transparente */
}



/* Estilos Exclusivos Envio em Massa (Prefixo wts-) */

.wts-main-card {
    background-color: #ffffff !important;
    border-top: 6px solid #4CAF50 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    max-width: 850px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.wts-header-title {
    color: #4CAF50 !important;
    font-size: 1.2rem !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wts-input-group {
    margin-bottom: 18px !important;
}

.wts-label-text {
    display: block !important;
    color: #4CAF50 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    margin-bottom: 6px !important;
}

/* Customização do Chat/Textarea */
.wts-chat-box {
    border: 1px solid #e9edef !important;
    border-radius: 10px !important;
    background-color: #f8f9fa !important;
    overflow: hidden !important;
}

.wts-text-area {
    width: 100% !important;
    min-height: 90px !important;
    border: none !important;
    background: transparent !important;
    padding: 12px !important;
    outline: none !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    resize: vertical !important;
    box-sizing: border-box !important;
}

.wts-chat-footer {
    background-color: #f0f2f5 !important;
    padding: 4px 12px !important;
    font-size: 0.7rem !important;
    color: #8696a0 !important;
    text-align: right !important;
}

/* Grid de Anexos Estilo Zap */
.wts-attachment-grid {
    display: flex !important;
    justify-content: space-around !important;
    background-color: #f0f2f5 !important;
    padding: 12px !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

.wts-icon-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: transform 0.2s !important;
}

.wts-icon-label:hover {
    transform: scale(1.15) !important;
}

.wts-icon-label span {
    font-size: 0.65rem !important;
    color: #54656f !important;
    margin-top: 4px !important;
    font-weight: bold !important;
}

/* Botão de Envio */
.wts-btn-submit {
    width: 100% !important;
    background-color: #4CAF50 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.wts-btn-cancel {
    width: 100% !important;
    background-color: #af844c !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 30px !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}


.wts-btn-submit:hover {
    background-color: #008f6f !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.wts-btn-select {
    background-color: #e9edef !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    cursor: pointer !important;
    display: inline-block !important;
    border: 1px solid #d1d7db !important;
}

.wts-file-status {
    font-size: 0.75rem !important;
    color: #667781 !important;
    margin-left: 8px !important;
}



/* Estado padrão do botão de envio em massa (quando ativo pelo servidor) */
.btn-sending-active {
    background-color: #ff4d4d !important; /* Vermelho */
    background: #ff4d4d !important;
    color: white !important;
    border: 1px solid #cc0000 !important;
    cursor: not-allowed !important;
    pointer-events: none; /* Impede cliques repetidos */
    position: relative;
}

/* Opcional: Efeito de pulso para mostrar que está trabalhando */
.btn-sending-active::after {
    content: " (Processando...)";
    font-size: 0.8em;
    opacity: 0.7;
}