/* Variáveis CSS para cores e tamanhos */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #ccc;
    --error-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Layout Flexbox para Footer Fixo */
html, body {
    height: 100%;
}

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

.dashboard-card {
    flex: 1;
}

/* Estilos globais para o corpo da página */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9ecef;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    color: var(--text-color);
    padding-top: 90px;
}

/* Estilos para o cabeçalho fixo */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

.site-header .logo-container {
    display: flex;
    align-items: center;
}

.site-header .logo {
    width: 40px;
    height: auto;
    margin-right: 15px;
}

.site-header .title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-header .site-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.site-header .site-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin: 0;
}

/* Estilos para a página de autenticação */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 450px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    margin-top: 50px;
}

.form-content {
    padding: 0 30px;
    box-sizing: border-box;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: none;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

input::placeholder {
    color: #999;
    opacity: 1;
}

button.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button.submit-btn:hover {
    background-color: var(--primary-dark);
}

.message-area {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-size: 1rem;
    word-wrap: break-word;
}

.message-area.success {
    background-color: #d4edda;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.message-area.error {
    background-color: #f8d7da;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.message-area.info {
    background-color: #cfe2f3;
    color: #055160;
    border: 1px solid #b6d4fe;
}

.form-group.password-group {
    position: relative;
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 45px;
}

@media (max-width: 600px) {
    .container {
        width: 95%;
        margin: 0 auto;
        padding: 20px;
    }
}

/* NOVOS ESTILOS PARA O DASHBOARD */
.main-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 20px;
}

.dashboard-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    box-sizing: border-box;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Container do título da página e do botão de retorno */
.page-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.return-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #6c757d;
    transition: color 0.3s ease;
    padding: 0;
}

.return-button:hover {
    color: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logout-button {
    padding: 8px 12px;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #c82333;
}

.dashboard-filters-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.center-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Estilos do novo seletor de empresas */
.custom-select-container {
    position: relative;
    width: 450px;
    font-size: 1rem;
    padding: 0;
}

.select-display {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.select-display:after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transform: rotate(135deg);
    transition: transform 0.3s ease;
}

.select-display.open:after {
    transform: rotate(-45deg);
}

.select-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 5px;
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    z-index: 10;
    padding: 10px;
    box-shadow: var(--box-shadow);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.select-dropdown.open {
    max-height: 200px;
    opacity: 1;
}

.select-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 140px;
    overflow-y: auto;
}

.select-list li {
    padding: 8px 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-list li:hover {
    background-color: var(--secondary-color);
}

/* Estilos do seletor de período com pop-up */
.periodo-selector-container {
    position: relative;
}

.periodo-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    background-color: var(--secondary-color);
}

.periodo-display {
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.2s ease;
}

.periodo-display:hover {
    background-color: #f0f0f0;
}

/* Estilos do modal para seleção de período personalizado */
/* A classe 'open' é controlada via JavaScript para exibir o modal */
.custom-period-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 280px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    z-index: 10;
    padding: 10px;
    box-shadow: var(--box-shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.custom-period-dropdown.open {
    max-height: 200px;
    opacity: 1;
}

.custom-period-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.custom-period-content input[type="date"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.nav-button,
.apply-period-button,
.filter-button,
.action-button {
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.action-button:hover {
    background-color: var(--primary-dark);
}

/* Botões específicos */
.add-button {
    background-color: var(--success-color);
}

.add-button:hover {
    background-color: #218838;
}

.cancel-button {
    background-color: #6c757d;
}

.cancel-button:hover {
    background-color: #545b62;
}

.table-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.nav-button:hover,
.apply-period-button:hover,
.filter-button:hover,
.action-button:hover {
    background-color: var(--primary-dark);
}

.table-container {
    margin-top: 20px;
}

.table-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.table-responsive {
    overflow-x: auto;
}

/* -- Estilos para a Tabela de Pacotes e Usuários -- */
/* Estilo para as células de cabeçalho (th) */
.data-table thead th {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    background-color: var(--secondary-color);
    font-weight: 700;
    color: var(--text-color);
}

/* Estilo para o texto do título e os inputs/selects */
.data-table thead th span {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

/* Regra unificada para que todos os campos de filtro tenham a mesma largura */
.data-table .table-filter-input,
.data-table .table-filter-select {
    width: 100%;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Estilo para o placeholder */
.table-filter-input::placeholder {
    color: #a0a0a0;
    font-style: italic;
    opacity: 1;
}

/* Estilos para as células de dados (corpo da tabela) */
.data-table th,
.data-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center; /* CENTRALIZADO */
    white-space: nowrap;
}

/* Centralizando todas as células das tabelas do dashboard */
.table td, .table th {
    text-align: center !important;
}

/* Centralizando especificamente as mensagens de empty state */
.table td.text-center {
    text-align: center !important;
}

/* Centralizando especificamente as tabelas do dashboard */
#pacotesTable td, #pacotesTable th,
#arquivosTable td, #arquivosTable th {
    text-align: center !important;
}

/* Exceção para células com ações/botões que devem ficar centralizadas também */
.actions-cell {
    text-align: center !important;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #f1f1f1;
}

/* Estilos para os botões de ação na nova tabela */
.table-actions-top {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.table-actions-top .action-button {
    padding: 10px 15px;
    font-size: 0.9rem;
}

/* Estilos para os botões de CRUD */
.edit-button {
    background-color: #007bff;
    color: #fff;
}

.edit-button:hover {
    background-color: #007bff;
}

.delete-button {
    background-color: #dc3545;
    color: #fff;
}

.delete-button:hover {
    background-color: #c82333;
}

/* Botão de download de pacote */
.btn-download-pacote {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.2s;
}

.btn-download-pacote:hover {
    background-color: #0056b3;
}

.btn-download-pacote:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-download-pacote.downloading {
    background-color: #ffc107;
    color: #000;
}

.btn-download-pacote.success {
    background-color: #28a745;
}

.btn-download-pacote.error {
    background-color: #dc3545;
}

.btn-download-pacote i {
    font-size: 11px;
}

/* Badges de situação */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: center;
    min-width: 90px;
    border: 2px solid transparent; 
}

/* VERDE - Ativa */
.situacao-ativa {
    background-color: #28a745; 
    color: white;            
    border-color: #1e7e34; 
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* VERMELHO - Cancelado */
.situacao-cancelado {
    background-color: #dc3545;
    color: white; 
    border-color: #bd2130; 
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* CINZA - Excluído */
.situacao-excluido {
    background-color: #6c757d;
    color: white; 
    border-color: #545b62; 
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}


/* Seletor de empresa obrigatório */
.custom-select-container.required {
    border: 2px solid #007bff;
    border-radius: 6px;
    animation: pulse-blue 2s infinite;
    z-index: 11;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

.select-display.required {
    color: #007bff;
    font-weight: bold;
}

/* Tabela com rolagem */
.table-responsive {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto; 
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table thead th {
    padding: 12px;
    text-align: center; /* CENTRALIZADO */
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.data-table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f5f5f5;
}

.data-table tbody td {
    padding: 12px;
    vertical-align: middle;
    text-align: center; /* CENTRALIZADO */
}

/* Scrollbar personalizada - Webkit (Chrome, Safari, Edge) */
.table-responsive::-webkit-scrollbar {
    width: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Scrollbar personalizada - Firefox */
.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Indicador de loading */
.loading-row td {
    text-align: center;
    padding: 40px !important;
    color: #007bff;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Mensagens de feedback (empty state) */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.empty-state span {
    font-size: 14px;
    color: #666;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#addUsuarioModal .modal-content {
    width: 90%;
    max-width: 500px;
    padding: 20px;
}

#addUsuarioModal .modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

#addUsuarioModal .modal-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

#addUsuarioModal .modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

#addUsuarioModal .form-group {
    margin-bottom: 15px;
}

#addUsuarioModal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

#addUsuarioModal input[type="text"],
#addUsuarioModal input[type="email"],
#addUsuarioModal input[type="password"],
#addUsuarioModal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

#addUsuarioModal .modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* === MODAL ESPECÍFICO - VÍNCULOS === */
#vinculoEmpresasModal .modal-content {
    width: 90%;
    max-width: 700px;
    padding: 25px;
}

#vinculoEmpresasModal .modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

#vinculoEmpresasModal .modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

#vinculoEmpresasModal .modal-body {
    padding: 0;
    max-height: 65vh;
    overflow-y: auto;
}

#vinculoEmpresasModal .form-group {
    margin-bottom: 20px;
}

#vinculoEmpresasModal .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 1rem;
}

#vinculoEmpresasModal input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    background-color: #f8f9fa;
}

#vinculoEmpresasModal .modal-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* === MODAL ESPECÍFICO - EMPRESAS === */
#clienteModal .modal-content {
    width: 90%;
    max-width: 550px;
    padding: 20px;
}

#clienteModal .modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

#clienteModal .modal-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

#clienteModal .modal-body {
    padding: 0;
    max-height: 60vh;
    overflow-y: auto;
}

#clienteModal .form-group {
    margin-bottom: 15px;
}

#clienteModal .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

#clienteModal input[type="text"],
#clienteModal input[type="number"],
#clienteModal select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

#clienteModal .modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Força o dropdown a abrir para baixo */
.vscomp-dropbox-wrapper {
    position: fixed !important;
    z-index: 10002 !important;
}

.vscomp-dropbox {
    position: fixed !important;
    z-index: 10002 !important;
}

/* Ajuste específico para modal */
.modal-overlay .vscomp-wrapper {
    position: relative;
    z-index: 1;
}

.modal-overlay .modal-content {
    background-color: white;
    border-radius: 8px;
    padding: 0;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-overlay .vscomp-dropbox-container {
    position: fixed !important;
    z-index: 10002 !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.modal-header .close-button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
}

.modal-header .close-button:hover {
    color: var(--error-color);
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"],
.modal-body input[type="number"],
.modal-body select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}

.modal-body .password-input-wrapper {
    position: relative;
}

.modal-body .toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #6c757d;
}

.modal-body .toggle-password-btn:hover {
    color: var(--primary-dark);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1.5rem;
}

/* Estilos específicos para o modal de seleção de data */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .modal-content {
    width: 400px;
    max-width: 90%;
}

.modal-body .date-selector {
    padding: 10px 0;
}

.month-year-selector {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.month-year-selector label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.month-year-selector select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.modal-footer {
    padding: 20px 0 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

/* Estilos para pacotes de notas */
.pacote-detalhes {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin: 10px 0;
}

.detalhes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.detalhes-table th,
.detalhes-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.detalhes-table th {
    background-color: #e9ecef;
    font-weight: bold;
}

.btn-expand {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-right: 5px;
}

.btn-expand:hover {
    background-color: #0056b3;
}

/* Checkbox para pacotes */
.pacoteCheckbox {
    margin-left: 5px;
}

/* Estilos para ícones de situação */
.fa-check-circle {
    color: var(--success-color);
}

.fa-times-circle {
    color: var(--error-color);
}

.fa-trash {
    color: #6c757d;
}

.fa-question-circle {
    color: var(--warning-color);
}

@media (max-width: 768px) {
    .table-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        width: 100%;
    }

    .data-table thead th {
        min-height: auto;
    }

    .custom-select-container {
        width: 100%;
        max-width: 300px;
    }

    .dashboard-filters-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        justify-content: center;
    }
}

/* --- Estilos para Paginação --- */
/* Estilo para o container da paginação */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

/* Estilo para os botões de paginação */
.pagination-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    background-color: var(--primary-color);
    color: white;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-dark);
}

/* Estilo para os botões desabilitados */
.pagination-btn:disabled {
    cursor: not-allowed;
    background-color: #e0e0e0;
    color: #a0a0a0;
}

/* Estilo para o texto do número da página */
#pageNumber {
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-color);
}

/* ========================================
   ESTILOS PARA OS NOVOS BOTÕES E MODAL DE USUÁRIOS
   ======================================== */

/* Grupo de botões de ação */
.action-buttons-group {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

/* Estilo para o botão de usuários */
.users-button {
    background-color: var(--info-color) !important;
    border-color: var(--info-color) !important;
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
}

.users-button:hover {
    background-color: #138496 !important;
    border-color: #138496 !important;
}

/* Container da lista de usuários */
.usuarios-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 10px;
    background-color: #f8f9fa;
}

/* Item individual da lista de usuários */
.usuario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.usuario-info {
    flex: 1;
}

.usuario-info strong {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 4px;
}

.usuario-info span {
    font-size: 0.9rem;
    color: #666;
}

/* Container para adicionar usuário */
.add-usuario-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.add-usuario-container select {
    flex: 1;
}

.add-usuario-container button {
    white-space: nowrap;
}

/* modal de validação via código*/
.form-wrapper {
    position: relative;
    overflow: hidden; /* Esconde o que sair da área */
}

/* Container que segura os dois formulários lado a lado */
.auth-container {
    display: flex;
    width: 200%; /* Dobro da largura para caber os 2 formulários */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Animação suave */
}

/* Quando ativa modo 2FA, desliza para a esquerda */
.auth-container.modo-2fa {
    transform: translateX(-50%); /* Move 50% para esquerda */
}

/* Cada formulário ocupa 50% do container */
.form-content,
.form-2fa {
    flex: 0 0 50%;
    padding: 40px;
    box-sizing: border-box;
}

/* Estilo específico do formulário 2FA */
.form-2fa {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form-2fa h2 {
    color: #1976d2;
    margin-bottom: 10px;
    font-size: 28px;
}

.form-2fa .subtitulo {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    font-size: 14px;
}

/* Campo do código 2FA com estilo especial */
.codigo-2fa-group {
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
}

.codigo-2fa-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

#codigo2fa {
    width: 100%;
    padding: 15px;
    font-size: 24px; /* Fonte grande para código */
    text-align: center;
    letter-spacing: 8px; /* Espaçamento entre dígitos */
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace; /* Fonte monoespaçada */
}

#codigo2fa:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

/* Animação de "pulse" quando campo está vazio */
#codigo2fa:invalid {
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: #ddd;
    }
    50% {
        border-color: #1976d2;
    }
}

/* Informações extras */
.info-2fa {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
}

.info-2fa i {
    color: #1976d2;
    margin-right: 8px;
}

/* Contador de tempo */
.tempo-restante {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.tempo-restante.urgente {
    color: #d32f2f;
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Botão de voltar */
.btn-voltar {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-voltar:hover {
    background: #f5f5f5;
    border-color: #1976d2;
    color: #1976d2;
}

/* Ajuste do reCAPTCHA */
#recaptcha-element {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Responsivo */
@media (max-width: 768px) {
    .auth-container {
        width: 100%;
        flex-direction: column;
    }
    
    .auth-container.modo-2fa {
        transform: translateY(-100%); /* Desliza para cima em mobile */
    }
    
    .form-content,
    .form-2fa {
        flex: 0 0 100%;
    }
}

/* Container para busca de usuários */
.search-usuario-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

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

.search-result-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2px;
}

.search-result-details {
    font-size: 0.85rem;
    color: #666;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Ajustes para células de ação */
.actions-cell {
    min-width: 200px;
}

/* Responsividade para botões em telas menores */
@media (max-width: 768px) {
    .action-buttons-group {
        flex-direction: column;
        gap: 3px;
    }

    .action-buttons-group button {
        font-size: 0.8rem !important;
        padding: 4px 8px !important;
    }

    .actions-cell {
        min-width: auto;
    }

    .add-usuario-container {
        flex-direction: column;
        gap: 8px;
    }

    .add-usuario-container select,
    .add-usuario-container button {
        width: 100%;
    }
}

/* Mensagens de feedback */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 8px 0;
}

/* Modal maior para usuários */
.modal-large .modal-content {
    max-width: 900px;
    width: 90%;
}

/* Seções do modal de usuários */
.usuarios-sections {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 20px;
}

.usuarios-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background-color: #f9f9f9;
}

.usuarios-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

/* Lista de usuários relacionados */
.usuarios-relacionados-list {
    max-height: 300px;
    overflow-y: auto;
}

.usuarios-relacionados-list .usuario-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Container dos usuários disponíveis */
.usuarios-disponiveis-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

/* Tabela de usuários disponíveis */
.usuarios-table {
    width: 100%;
}

.usuarios-table-header {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 10px;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.usuarios-table-body {
    display: flex;
    flex-direction: column;
}

.usuario-disponivel-item {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr;
    gap: 10px;
    padding: 12px 10px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    transition: background-color 0.2s;
}

.usuario-disponivel-item:hover {
    background-color: #f8f9fa;
}

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

/* Colunas da tabela */
.col-nome,
.col-email,
.col-tipo,
.col-acao {
    padding: 0 5px;
}

.col-nome {
    font-weight: 500;
    color: var(--text-color);
}

.col-email {
    color: #666;
    font-size: 0.9rem;
}

.col-tipo {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Campo de busca dentro do modal */
.search-input {
    margin-bottom: 15px;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-large .modal-content {
        width: 95%;
        max-width: none;
    }

    .usuarios-sections {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .usuarios-table-header,
    .usuario-disponivel-item {
        grid-template-columns: 1.5fr 1.5fr 1fr auto;
        gap: 5px;
        font-size: 0.9rem;
    }

    .col-email {
        display: none;
    }
}

/* === MODAL SIMPLE - INTERFACE SIMPLES PARA GERENCIAR USUÁRIOS === */
.modal-simple {
    max-width: 500px !important;
    width: 90%;
}

/* Área de usuários relacionados */
.usuarios-relacionados-area {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
    background-color: #f8f9fa;
}

.usuarios-relacionados-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usuario-relacionado-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.usuario-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.usuario-info strong {
    color: #333;
    font-weight: 600;
}

.usuario-info span {
    color: #666;
    font-size: 0.9rem;
    margin-top: 2px;
}

.btn-remove-usuario {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-usuario:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

/* Seção adicionar usuário */
.adicionar-usuario-section {
    margin-top: 20px;
}

.adicionar-usuario-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.add-usuario-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.usuario-dropdown {
    flex: 1;
    padding: 10px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.usuario-dropdown:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.btn-add-usuario {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.btn-add-usuario:hover {
    background-color: #218838;
    transform: scale(1.05);
}

.btn-add-usuario:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Estados de carregamento */
.usuarios-relacionados-container p {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 40px 0;
}

/* Responsividade para modal simples */
@media (max-width: 576px) {
    .modal-simple {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .add-usuario-container {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-add-usuario {
        width: 100%;
        justify-content: center;
    }
}

/* Container principal da página de login */
.auth-2fa-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 20px;
    background-color: #e9ecef;
}

/* Wrapper do formulário - controla overflow da animação */
.auth-2fa-form-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Container que segura os 2 formulários lado a lado */
.auth-2fa-container {
    display: flex;
    width: 200%; /* Dobro da largura */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ✨ Animação: desliza para esquerda quando ativa 2FA */
.auth-2fa-container.modo-2fa-ativo {
    transform: translateX(-50%);
}

/* Cada formulário ocupa 50% do container */
.auth-2fa-form-login,
.auth-2fa-form-validacao {
    flex: 0 0 50%;
    padding: 30px 35px;
    box-sizing: border-box;
}

/* ========================================
   FORMULÁRIO DE LOGIN (ESQUERDA)
   ======================================== */

.auth-2fa-form-login {
    display: flex;
    flex-direction: column;
}

.auth-2fa-titulo-login {
    color: #1976d2;
    margin-bottom: 15px;
    font-size: 26px;
    text-align: center;
    font-weight: 700;
}

.auth-2fa-grupo-campo {
    margin-bottom: 15px;
}

.auth-2fa-grupo-campo label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.auth-2fa-input-texto,
.auth-2fa-input-senha {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-2fa-input-texto:focus,
.auth-2fa-input-senha:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

.auth-2fa-input-texto::placeholder,
.auth-2fa-input-senha::placeholder {
    color: #999;
}

/* Wrapper para campo de senha */
.auth-2fa-senha-wrapper {
    position: relative;
}

/* reCAPTCHA centralizado */
.auth-2fa-recaptcha {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    transform: scale(0.95);
    transform-origin: center;
}

/* Botão de submit do login */
.auth-2fa-botao-entrar {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-2fa-botao-entrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
}

.auth-2fa-botao-entrar:active {
    transform: translateY(0);
}

/* Mensagens do formulário de login */
.auth-2fa-mensagem-login {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.auth-2fa-mensagem-login.sucesso {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.auth-2fa-mensagem-login.erro {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* ========================================
   FORMULÁRIO DE VALIDAÇÃO 2FA (DIREITA)
   ======================================== */

.auth-2fa-form-validacao {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-2fa-titulo-validacao {
    color: #1976d2;
    margin-bottom: 8px;
    font-size: 24px;
    text-align: center;
    font-weight: 700;
}

.auth-2fa-subtitulo-validacao {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-size: 13px;
}

/* Box de informação do WhatsApp */
.auth-2fa-info-whatsapp {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #555;
}

.auth-2fa-info-whatsapp i {
    color: #1976d2;
    margin-right: 6px;
}

/* Grupo do campo de código */
.auth-2fa-grupo-codigo {
    margin-bottom: 15px;
}

.auth-2fa-grupo-codigo label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

/* Campo de entrada do código 2FA */
.auth-2fa-input-codigo {
    width: 100%;
    padding: 14px;
    font-size: 22px;
    text-align: center;
    letter-spacing: 6px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    box-sizing: border-box;
    color: #333;
}

.auth-2fa-input-codigo:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
    outline: none;
}

.auth-2fa-input-codigo::placeholder {
    color: #ccc;
    letter-spacing: normal;
}

/* Animação pulse na borda quando inválido */
.auth-2fa-input-codigo:invalid {
    animation: auth-2fa-pulse-borda 2s infinite;
}

@keyframes auth-2fa-pulse-borda {
    0%, 100% { border-color: #ddd; }
    50% { border-color: #1976d2; }
}

/* Contador de tempo restante */
.auth-2fa-tempo-restante {
    font-size: 11px;
    color: #666;
    margin-top: 8px;
    text-align: center;
}

.auth-2fa-tempo-restante.urgente {
    color: #d32f2f;
    font-weight: bold;
    animation: auth-2fa-piscar 1s infinite;
}

@keyframes auth-2fa-piscar {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Botão de validar código */
.auth-2fa-botao-validar {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-2fa-botao-validar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.auth-2fa-botao-validar:active {
    transform: translateY(0);
}

/* Botão de voltar */
.auth-2fa-botao-voltar {
    width: 100%;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-2fa-botao-voltar:hover {
    background: #f5f5f5;
    border-color: #1976d2;
    color: #1976d2;
}

/* Mensagens do formulário de validação */
.auth-2fa-mensagem-validacao {
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
    display: none;
}

.auth-2fa-mensagem-validacao.sucesso {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.auth-2fa-mensagem-validacao.erro {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #f44336;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

@media (max-width: 768px) {
    .auth-2fa-form-wrapper {
        max-width: 95%;
    }
    
    .auth-2fa-form-login,
    .auth-2fa-form-validacao {
        padding: 25px 20px;
    }
    
    .auth-2fa-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .auth-2fa-titulo-login {
        font-size: 22px;
    }
    
    .auth-2fa-titulo-validacao {
        font-size: 20px;
    }
    
    .auth-2fa-input-codigo {
        font-size: 20px;
        letter-spacing: 4px;
    }
    
    .auth-2fa-botao-entrar,
    .auth-2fa-botao-validar {
        font-size: 14px;
        padding: 10px;
    }
}

/* ========================================
   ESTADOS DE LOADING
   ======================================== */

.auth-2fa-botao-entrar:disabled,
.auth-2fa-botao-validar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-2fa-botao-entrar.processando::after,
.auth-2fa-botao-validar.processando::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: auth-2fa-spinner 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes auth-2fa-spinner {
    to { transform: rotate(360deg); }
}