/* Estilos Gerais do WhatsApp */
.content-wrapper-whatsapp {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 1200px) {
    .content-wrapper-whatsapp {
        grid-template-columns: 1fr;
    }
}

/* Seção de Seleção de Alunos */
.selecao-alunos-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.selecao-alunos-section h3 {
    margin-bottom: 20px;
    color: #0a7a83;
    font-size: 1.3em;
}

.busca-container {
    margin-bottom: 20px;
}

.busca-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.busca-input:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.alunos-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
}

.alunos-lista {
    padding: 10px;
}

.aluno-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.aluno-item:hover {
    background: #f0f0f0;
    border-color: #0a7a83;
}

.aluno-item.selecionado {
    background: #e3f2fd;
    border-color: #0a7a83;
    border-width: 2px;
}

.aluno-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.aluno-info {
    flex: 1;
}

.aluno-nome {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.aluno-detalhes {
    font-size: 0.85em;
    color: #666;
}

.aluno-telefone {
    color: #25D366;
    font-weight: 600;
    margin-top: 4px;
}

.alunos-selecionados {
    padding: 15px;
    background: #e8f5e9;
    border-radius: 5px;
    border-left: 4px solid #4caf50;
    font-size: 0.9em;
}

.alunos-selecionados strong {
    color: #2e7d32;
}

.aluno-selecionado-tag {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    margin: 5px 5px 0 0;
    font-size: 0.85em;
}

.aluno-selecionado-tag .remover {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Editor de Mensagens */
.editor-mensagens-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.editor-mensagens-section h3 {
    margin-bottom: 20px;
    color: #0a7a83;
    font-size: 1.3em;
}

.templates-section {
    margin-bottom: 20px;
}

.templates-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.template-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background: white;
}

.template-select:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.editor-texto-section {
    margin-bottom: 20px;
}

.editor-texto-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.mensagem-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
}

.mensagem-textarea:focus {
    outline: none;
    border-color: #0a7a83;
    box-shadow: 0 0 0 3px rgba(10, 122, 131, 0.15);
}

.variaveis-ajuda {
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border-radius: 5px;
    font-size: 0.85em;
}

.variaveis-ajuda strong {
    display: block;
    margin-bottom: 8px;
    color: #856404;
}

.variavel-tag {
    display: inline-block;
    background: #0a7a83;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    margin: 4px 4px 0 0;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
}

.variavel-tag:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* Preview */
.preview-section {
    margin-bottom: 20px;
}

.preview-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.preview-box {
    background: white;
    border: 2px solid #25D366;
    border-radius: 10px;
    padding: 20px;
    min-height: 100px;
    font-size: 0.95em;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.preview-box.whatsapp-style {
    background: #dcf8c6;
    color: #000;
}

/* Botões */
.botoes-acao-whatsapp {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    flex: 1;
}

.btn-whatsapp:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.whatsapp-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

/* Histórico */
.historico-section {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.historico-section h3 {
    margin-bottom: 20px;
    color: #0a7a83;
    font-size: 1.3em;
}

.historico-container {
    max-height: 300px;
    overflow-y: auto;
}

.historico-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid #25D366;
}

.historico-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

.historico-item-aluno {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.historico-item-mensagem {
    color: #555;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-top: 8px;
}

.historico-item-data {
    font-size: 0.85em;
    color: #999;
}

/* Scrollbar personalizada */
.alunos-container::-webkit-scrollbar,
.historico-container::-webkit-scrollbar {
    width: 8px;
}

.alunos-container::-webkit-scrollbar-track,
.historico-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.alunos-container::-webkit-scrollbar-thumb,
.historico-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.alunos-container::-webkit-scrollbar-thumb:hover,
.historico-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}




