/* === SISTEMA DE NOTIFICAÇÕES MELHORADO === */
.notification-system {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 90%;
}

.notification {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s ease;
    border-left: 4px solid var(--primary);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.info {
    border-left-color: var(--primary);
}

.notification.loading {
    border-left-color: var(--accent);
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    color: var(--success);
}

.notification.error .notification-icon {
    color: var(--danger);
}

.notification.warning .notification-icon {
    color: var(--warning);
}

.notification.info .notification-icon {
    color: var(--primary);
}

.notification.loading .notification-icon {
    color: var(--accent);
    animation: spin 1s linear infinite;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 3px;
    font-size: 14px;
}

.notification-message {
    font-size: 13px;
    color: var(--muted);
}

.notification-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--muted);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

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

/* === CORES PARA VERIFICAÇÃO DE MATRÍCULA === */
.input-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    background-color: rgba(16, 185, 129, 0.05) !important;
}

.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    background-color: rgba(239, 68, 68, 0.05) !important;
}

.input-success:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.input-error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* === MODAL DE REDEFINIÇÃO DE SENHA (ADMIN) === */
.modal-redefinicao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
}

.modal-redefinicao.active {
    display: flex !important;
}

.modal-content-redefinicao {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.3s ease;
}

.fechar-modal-redefinicao {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
}

.fechar-modal-redefinicao:hover {
    background: #f3f4f6;
    color: #374151;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, #0b79d0, #ffa72c);
    color: white;
    padding: 25px;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header h2 i {
    margin-right: 10px;
}

.modal-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.passo-redefinicao {
    display: none;
    padding: 30px;
}

.passo-ativo {
    display: block;
}

.form-redefinicao {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-group input:focus {
    border-color: #0b79d0;
    background: white;
    box-shadow: 0 0 0 3px rgba(11, 121, 208, 0.1);
    outline: none;
}

.input-info {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.password-container-redefinicao {
    position: relative;
}

.toggle-password-redefinicao {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password-redefinicao:hover {
    background: #f3f4f6;
    color: #374151;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-text {
    font-size: 0.8rem;
    color: #6b7280;
    text-align: right;
}

.password-match {
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-redefinicao {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary-redefinicao {
    background: #246DA7;
    color: white;
}

.btn-primary-redefinicao:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 121, 208, 0.3);
}

.btn-success-redefinicao {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
}

.btn-success-redefinicao:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3);
}

.mensagem-redefinicao {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.3s ease;
}

.mensagem-redefinicao.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.mensagem-redefinicao.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.mensagem-redefinicao.loading {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.mensagem-redefinicao.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.progresso-redefinicao {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 0 0 15px 15px;
}

.passo-indicador {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.passo-indicador.ativo {
    background: linear-gradient(135deg, #0b79d0, #ffa72c);
    color: white;
    box-shadow: 0 4px 12px rgba(11, 121, 208, 0.3);
}

.linha-progresso {
    width: 40px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.passo-indicador.ativo + .linha-progresso {
    background: linear-gradient(135deg, #0b79d0, #ffa72c);
}

/* === MODAL DE SOLICITAÇÃO DE REDEFINIÇÃO (FUNCIONÁRIOS) === */
.modal-solicitacao-reset {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10050;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-solicitacao-reset.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-solicitacao-reset[style*="display: flex"] {
    display: flex !important;
}

.modal-content-solicitacao {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: slideUpModal 0.4s ease;
    border: 3px solid #0b79d0;
    margin: auto;
}

.modal-solicitacao-reset .modal-header {
    background: linear-gradient(135deg, #0b79d0, #0a6abd);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.modal-solicitacao-reset .modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-solicitacao-reset .modal-header h2 i {
    margin-right: 12px;
}

.modal-solicitacao-reset .modal-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.modal-solicitacao-reset .input-group {
    margin-bottom: 20px;
}

.modal-solicitacao-reset .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.modal-solicitacao-reset .input-group input,
.modal-solicitacao-reset .input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1f5fe;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
}

.modal-solicitacao-reset .input-group input:read-only {
    background: #f1f5f9;
    color: #6b7280;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.modal-solicitacao-reset .input-group input:focus,
.modal-solicitacao-reset .input-group textarea:focus {
    border-color: #0b79d0;
    background: white;
    box-shadow: 0 0 0 3px rgba(11, 121, 208, 0.2);
    outline: none;
}

.modal-solicitacao-reset .buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* === MODAL DE ALTERAÇÃO OBRIGATÓRIA DE SENHA === */
.modal-alteracao-obrigatoria {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10060;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: auto;
}

.modal-alteracao-obrigatoria.active {
    display: flex !important;
}

.modal-content-alteracao {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: slideUpModal 0.4s ease;
    border: 3px solid #ffa72c;
}

.modal-alteracao-obrigatoria .modal-header {
    background: linear-gradient(135deg, #ffa72c, #e67e22);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.modal-alteracao-obrigatoria .modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-alteracao-obrigatoria .modal-header h2 i {
    margin-right: 12px;
}

.modal-alteracao-obrigatoria .modal-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
}

.modal-alteracao-obrigatoria .input-group {
    margin-bottom: 20px;
}

.modal-alteracao-obrigatoria .input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.modal-alteracao-obrigatoria .password-container-redefinicao {
    position: relative;
}

.modal-alteracao-obrigatoria .password-container-redefinicao input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #ffe4cc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fffaf0;
}

.modal-alteracao-obrigatoria .password-container-redefinicao input:focus {
    border-color: #ffa72c;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 167, 44, 0.2);
    outline: none;
}

.modal-alteracao-obrigatoria .toggle-password-redefinicao {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-alteracao-obrigatoria .toggle-password-redefinicao:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-alteracao-obrigatoria .input-info {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-alteracao-obrigatoria .password-match {
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-alteracao-obrigatoria .buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* === MODAIS GERAIS DO SISTEMA === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9998;
    padding: 20px;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    animation: slideUpModal 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid #0b79d0;
}

.modal-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #1f2937;
    text-align: center;
}

.modal-content select {
    margin-bottom: 10px;
}

.modal-content .buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Modal de visualização de todos os usuários */
.view-users-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    z-index: 9998;
    padding: 20px;
}

.view-users-modal.active {
    display: flex !important;
}

.view-users-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.view-users-modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #1f2937;
    text-align: center;
}

.view-users-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.view-users-table th, .view-users-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.view-users-table th {
    background-color: #f8fafc;
    position: sticky;
    top: 0;
    font-weight: 600;
    color: #374151;
}

/* ========== MODAL DE EXPORTAÇÃO PROFISSIONAL ========== */

.export-modal-profissional {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.export-modal-profissional.active {
    display: flex;
}

.export-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

/* ESTILOS DOS PASSOS */
.export-step {
    display: none;
    padding: 25px;
}

.export-step.active {
    display: block;
}

.export-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.export-step-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-indicator {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* OPÇÕES DE EXPORTAÇÃO */
.export-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.export-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.export-option-card:hover {
    border-color: #0b79d0;
    background: #f0f9ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11, 121, 208, 0.1);
}

.export-option-card input[type="radio"] {
    display: none;
}

.export-option-card input[type="radio"]:checked + label .export-option-card {
    border-color: #0b79d0;
    background: #e0f2fe;
}

.export-option-card label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.option-icon {
    width: 50px;
    height: 50px;
    background: #246DA7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.export-option-card[data-option="filtered"] .option-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.export-option-card[data-option="3ano"] .option-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.option-content {
    flex: 1;
}

.option-title {
    display: block;
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.option-desc {
    display: block;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* FILTROS DE EXPORTAÇÃO */
.export-filters-container {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.filtro-pesquisa-export {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.filtro-pesquisa-export input,
.filtro-pesquisa-export select {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.filtro-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* LISTA DE ALUNOS PARA EXPORTAÇÃO */
.export-alunos-list {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e5e7eb;
}

.export-alunos-list .list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.export-alunos-list .list-header h4 {
    margin: 0;
    color: #374151;
}

.registro-compacto {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.registro-compacto .item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.registro-compacto .item:last-child {
    border-bottom: none;
}

.registro-compacto .item input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* OPÇÕES DE FORMATO */
.export-format-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.format-option-card {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.format-option-card:hover {
    border-color: #0b79d0;
    background: #f0f9ff;
}

.format-option-card input[type="radio"] {
    display: none;
}

.format-option-card input[type="radio"]:checked + label .format-option-card {
    border-color: #0b79d0;
    background: #e0f2fe;
}

.format-option-card label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin: 0;
}

.format-icon {
    width: 45px;
    height: 45px;
    background: #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.3rem;
}

.format-option-card[data-format="excel"] .format-icon {
    background: #10b981;
    color: white;
}

.format-option-card[data-format="pdf"] .format-icon {
    background: #ef4444;
    color: white;
}

.format-option-card[data-format="csv"] .format-icon {
    background: #6b7280;
    color: white;
}

.format-content {
    flex: 1;
}

.format-title {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
    margin-bottom: 3px;
}

.format-desc {
    display: block;
    color: #6b7280;
    font-size: 0.85rem;
}

/* RESUMO DA EXPORTAÇÃO */
.export-summary {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #0b79d0;
}

.export-summary h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-details p {
    margin: 8px 0;
    color: #4b5563;
}

.summary-details strong {
    color: #374151;
    min-width: 100px;
    display: inline-block;
}

/* RODAPÉ DOS PASSOS */
.export-step-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .export-options-grid {
        grid-template-columns: 1fr;
    }

    .filtro-pesquisa-export {
        grid-template-columns: 1fr;
    }

    .export-format-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .export-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .step-indicator {
        align-self: flex-start;
    }
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === BOTÕES DE REDEFINIÇÃO NO LOGIN === */
#btnSolicitarResetFuncionario {
    background: #246DA7 !important;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(11, 121, 208, 0.3);
    margin-top: 10px;
    border: 1px solid #0a6abd;
}

#btnSolicitarResetFuncionario:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11, 121, 208, 0.4);
    background: linear-gradient(135deg, #0a6abd, #095aa6);
}

#btnSolicitarResetFuncionario:active {
    transform: translateY(-1px);
}

#btnRedefinirSenha {
    background: linear-gradient(135deg, #f59e0b, #e67e22);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    margin-top: 10px;
    border: 1px solid #e67e22;
}

#btnRedefinirSenha:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #e67e22, #d97706);
}

#btnRedefinirSenha:active {
    transform: translateY(-1px);
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ANIMAÇÕES ESPECÍFICAS === */
@keyframes pulseBlue {
    0% { box-shadow: 0 0 0 0 rgba(11, 121, 208, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(11, 121, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(11, 121, 208, 0); }
}

.pulse-blue {
    animation: pulseBlue 2s infinite;
}

/* === NOTIFICAÇÕES ANTIGAS (compatibilidade) === */
.notificacao {
    display: none;
    background: linear-gradient(to right, var(--secondary-color), #27ae60);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--box-shadow);
    position: relative;
}

.notificacao.error {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

.notificacao.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fechar-notificacao {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    margin-left: 10px;
    padding: 0 5px;
}

.fechar-notificacao:hover {
    opacity: 0.8;
}

/* === PERMISSÕES === */
.permissoes-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.permissoes-container label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === IMPORTAÇÃO DE PLANILHAS === */
.import-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px dashed #ced4da;
}

.import-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.import-title {
    font-weight: 600;
    color: #495057;
}

.import-instructions {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 10px;
}

.import-file-info {
    background-color: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 13px;
    display: none;
}

.import-preview {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    display: none;
}

.import-preview table {
    width: 100%;
    border-collapse: collapse;
}

.import-preview th, .import-preview td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
}

.import-preview th {
    background-color: #e9ecef;
    position: sticky;
    top: 0;
}

.import-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

/* === VALIDAÇÃO DE CAMPOS === */
.input-validating {
    border-color: #f59e0b !important;
    background-color: #fffbeb !important;
}

.validation-feedback {
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.validation-feedback.valid {
    color: #16a34a;
}

.validation-feedback.invalid {
    color: #dc2626;
}

/* Loading states */
.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* === MODAL DE ALTERAÇÃO OBRIGATÓRIA BLOQUEANTE === */
.modal-content-alteracao-bloqueante {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUpModal 0.3s ease;
    border: 3px solid #0b79d0;
    z-index: 10070;
}

.modal-header-azul {
    background: linear-gradient(135deg, #0b79d0, #0a6abd);
    color: white;
    padding: 25px;
    border-radius: 13px 13px 0 0;
    text-align: center;
}

.modal-header-azul h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header-azul h2 i {
    margin-right: 10px;
}

.modal-header-azul .modal-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.btn-primary-azul {
    background: #246DA7;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.btn-primary-azul:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 121, 208, 0.3);
    background: linear-gradient(135deg, #0a6abd, #095aa6);
}

.btn-primary-azul:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Overlay bloqueante */
.modal-alteracao-obrigatoria {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 10060;
}

/* Garantir que o modal fique acima de tudo */
.modal-alteracao-obrigatoria {
    z-index: 10060 !important;
}

/* Desabilitar interação com elementos de fundo */
body.modal-aberto {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

body.modal-aberto .modal-alteracao-obrigatoria,
body.modal-aberto .modal-solicitacao-reset,
body.modal-aberto .modal-redefinicao {
    pointer-events: auto;
}

/* === ANIMAÇÕES SUAVES PARA LOGIN === */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.8); }
}

/* Campo de senha com animação */
.senha-row-animada {
    animation: slideDownFade 0.5s ease-out;
    overflow: hidden;
}

/* Loading suave */
.loading-suave {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #0b79d0;
    border-radius: 50%;
    animation: spinSlow 1s linear infinite;
    margin-left: 8px;
}

/* Input com animação de validação */
.input-validando-suave {
    border-color: #f59e0b !important;
    background: linear-gradient(90deg, #fffbeb, #fff) !important;
    transition: all 0.5s ease;
}

.input-success-suave {
    border-color: #10b981 !important;
    background: linear-gradient(90deg, #f0fdf4, #fff) !important;
    animation: pulseGlow 2s infinite;
    transition: all 0.5s ease;
}

.input-error-suave {
    border-color: #ef4444 !important;
    background: linear-gradient(90deg, #fef2f2, #fff) !important;
    transition: all 0.5s ease;
}

/* Botão com loading */
.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spinSlow 1s linear infinite;
}

/* Efeito de digitação */
.typing-indicator {
    display: inline-block;
    position: relative;
}

.typing-indicator::after {
    content: '...';
    animation: typing 1.5s infinite;
}

@keyframes typing {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* === CORREÇÕES ADICIONAIS PARA MODAIS === */
/* Garantir que todos os modais usem flex corretamente */
.modal-redefinicao,
.modal-solicitacao-reset,
.modal-alteracao-obrigatoria,
.modal,
.view-users-modal,
.export-modal {
    display: none !important;
}

.modal-redefinicao.active,
.modal-solicitacao-reset.active,
.modal-alteracao-obrigatoria.active,
.modal.active,
.view-users-modal.active,
.export-modal.active {
    display: flex !important;
}

/* Remover estilos inline problemáticos */
[style*="display: flex"] {
    display: flex !important;
}

[style*="display: none"] {
    display: none !important;
}

/* Forçar z-index alto para modais */
.modal-solicitacao-reset {
    z-index: 10050 !important;
}

.modal-alteracao-obrigatoria {
    z-index: 10060 !important;
}

/* Prevenir scroll no body quando modal aberto */
body.modal-aberto {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Estilos para o botão de fechar consistente */
.modal-solicitacao-reset .fechar-modal-redefinicao,
.modal-alteracao-obrigatoria .fechar-modal-redefinicao,
.modal-redefinicao .fechar-modal-redefinicao {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5e7eb;
    line-height: 1;
}

.modal-solicitacao-reset .fechar-modal-redefinicao:hover,
.modal-alteracao-obrigatoria .fechar-modal-redefinicao:hover,
.modal-redefinicao .fechar-modal-redefinicao:hover {
    background: #f3f4f6;
    color: #374151;
    transform: rotate(90deg);
}

/* === RESPONSIVIDADE PARA MODAIS === */
@media (max-width: 768px) {
    .modal-content-redefinicao,
    .modal-content-solicitacao,
    .modal-content-alteracao,
    .modal-content,
    .view-users-modal-content,
    .export-modal-content {
        width: 95%;
        margin: 10px;
        padding: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .passo-redefinicao {
        padding: 20px;
    }

    .progresso-redefinicao {
        padding: 15px;
    }

    .passo-indicador {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .linha-progresso {
        width: 30px;
    }

    .notification-system {
        right: 10px;
        left: 10px;
        width: auto;
    }

    .modal-solicitacao-reset .buttons,
    .modal-alteracao-obrigatoria .buttons,
    .modal .buttons {
        flex-direction: column;
    }

    .modal-solicitacao-reset .buttons button,
    .modal-alteracao-obrigatoria .buttons button,
    .modal .buttons button {
        width: 100%;
    }

    #btnSolicitarResetFuncionario,
    #btnRedefinirSenha {
        font-size: 13px;
        padding: 10px 15px;
        width: 100%;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .modal-content-redefinicao,
    .modal-content-solicitacao,
    .modal-content-alteracao {
        width: 98%;
        margin: 5px;
        padding: 15px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .passo-redefinicao {
        padding: 15px;
    }

    .input-group input,
    .input-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .btn-redefinicao {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* === MODAL DE FOTOS (para compatibilidade) === */
.modal-foto {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 10070;
    padding: 20px;
}

.modal-foto.active {
    display: flex !important;
}

.modal-foto-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUpModal 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

/* === ESTILOS PARA FORMULÁRIOS DENTRO DE MODAIS === */
.modal-solicitacao-reset form,
.modal-alteracao-obrigatoria form,
.modal-redefinicao form {
    margin-top: 20px;
}

/* Garantir que textareas sejam responsivas */
textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
}

/* Melhorar visibilidade dos placeholders */
::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

/* === UTILITÁRIOS PARA MODAIS === */
.modal-open {
    overflow: hidden !important;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10049;
}

/* === ANIMAÇÃO DE ENTRADA SUAVE === */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-solicitacao-reset,
.modal-alteracao-obrigatoria,
.modal-redefinicao {
    animation: modalFadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

/* === GARANTIR QUE MODAIS SEJAM CLICÁVEIS === */
.modal-solicitacao-reset *,
.modal-alteracao-obrigatoria *,
.modal-redefinicao * {
    pointer-events: auto;
}

/* === CORREÇÃO FINAL PARA MODAL DE SOLICITAÇÃO === */
/* Esta regra é CRÍTICA para o funcionamento correto */
.modal-solicitacao-reset {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-solicitacao-reset.active {
    display: flex !important;
    opacity: 1 !important;
}

/* Forçar visibilidade quando tem classe active */
.modal-solicitacao-reset.active[style] {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Garantir que o conteúdo não fique escondido */
.modal-solicitacao-reset .modal-content-solicitacao {
    visibility: visible !important;
    opacity: 1 !important;
}

/* === ANIMAÇÃO ESPECÍFICA PARA MODAL DE SOLICITAÇÃO === */
@keyframes modalSolicitacaoIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-solicitacao-reset.active .modal-content-solicitacao {
    animation: modalSolicitacaoIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* === CORREÇÃO PARA BLOQUEIO DE SCROLL === */
html.modal-aberto,
body.modal-aberto {
    overflow: hidden !important;
    height: 100% !important;
    position: fixed !important;
    width: 100% !important;
}

/* === BOTÃO DE FECHAR COM ESTILO MELHORADO === */
.modal-solicitacao-reset .fechar-modal-redefinicao {
    background: white;
    border: 2px solid #0b79d0;
    color: #0b79d0;
    font-weight: bold;
    transition: all 0.3s ease;
}

.modal-solicitacao-reset .fechar-modal-redefinicao:hover {
    background: #0b79d0;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* === RESPONSIVIDADE EXTRA PARA MODAL DE SOLICITAÇÃO === */
@media (max-width: 576px) {
    .modal-solicitacao-reset {
        padding: 10px;
    }

    .modal-content-solicitacao {
        width: 98%;
        margin: 5px;
        padding: 15px;
    }

    .modal-solicitacao-reset .modal-header {
        padding: 20px 15px;
    }

    .modal-solicitacao-reset .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-solicitacao-reset .input-group input,
    .modal-solicitacao-reset .input-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Evitar zoom no iOS */
    }
}

/* === GARANTIR QUE O MODAL FIQUE SEMPRE VISÍVEL === */
.modal-solicitacao-reset {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
}

/* === ÚLTIMA CORREÇÃO: FORÇAR VISIBILIDADE === */
.modal-solicitacao-reset[style*="flex"],
.modal-solicitacao-reset[style*="block"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========== MODAL DE EXCLUSÃO DO 3º ANO ========== */

.exclusao-modal-profissional {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.exclusao-modal-profissional.active {
    display: flex;
}

.exclusao-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 70px rgba(239, 68, 68, 0.2);
    animation: slideUp 0.4s ease;
    border-top: 5px solid #ef4444;
}

/* ESTILOS DOS PASSOS DE EXCLUSÃO */
.exclusao-step {
    display: none;
    padding: 25px;
}

.exclusao-step.active {
    display: block;
}

.exclusao-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fee2e2;
}

.exclusao-step-header h3 {
    margin: 0;
    color: #dc2626;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ALERTA DE AVISO */
.exclusao-warning-alert {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.alert-icon {
    width: 50px;
    height: 50px;
    background: #dc2626;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.exclusao-warning-alert .alert-icon {
    background: #f59e0b;
}

.alert-content h4 {
    margin: 0 0 10px 0;
    color: #92400e;
    font-size: 1.2rem;
}

.alert-content p {
    margin: 0 0 15px 0;
    color: #92400e;
    line-height: 1.5;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warning-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #92400e;
    font-size: 0.9rem;
}

.warning-list li i {
    color: #059669;
}

/* FILTROS DE EXCLUSÃO */
.exclusao-filters-container {
    background: #fef2f2;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #fecaca;
}

.filter-info-box {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dc2626;
    font-size: 0.9rem;
}

.filter-info-box i {
    font-size: 1.1rem;
}

.filtro-pesquisa-exclusao {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.filtro-pesquisa-exclusao input,
.filtro-pesquisa-exclusao select {
    padding: 10px 12px;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.filtro-pesquisa-exclusao input:focus,
.filtro-pesquisa-exclusao select:focus {
    border-color: #ef4444;
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.filtro-actions-exclusao {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* LISTA DE ALUNOS PARA EXCLUSÃO */
.exclusao-alunos-list {
    background: white;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #fee2e2;
}

.list-header-exclusao {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.list-header-exclusao h4 {
    margin: 0;
    color: #374151;
}

.list-subtitle {
    margin: 5px 0 0 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.list-actions {
    display: flex;
    gap: 8px;
}

.registro-compacto-exclusao {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.registro-compacto-exclusao .item {
    padding: 12px 15px;
    border-bottom: 1px solid #fee2e2;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.registro-compacto-exclusao .item:hover {
    background: #fef2f2;
}

.registro-compacto-exclusao .item:last-child {
    border-bottom: none;
}

.registro-compacto-exclusao .item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ef4444;
}

.registro-compacto-exclusao .item .aluno-info {
    flex: 1;
}

.registro-compacto-exclusao .item .aluno-nome {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.registro-compacto-exclusao .item .aluno-detalhes {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 3px;
}

/* CONFIRMAÇÃO FINAL */
.exclusao-confirmation-container {
    padding: 20px 0;
}

.confirmation-alert.danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border: 2px solid #ef4444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.confirmation-alert.danger .alert-icon {
    background: #ef4444;
}

.confirmation-alert.danger h4 {
    margin: 0 0 10px 0;
    color: #dc2626;
    font-size: 1.2rem;
}

.confirmation-alert.danger p {
    margin: 0 0 10px 0;
    color: #7f1d1d;
    line-height: 1.5;
}

.warning-text {
    color: #dc2626 !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px !important;
}

/* RESUMO DA EXCLUSÃO */
.exclusao-summary {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid #ef4444;
}

.exclusao-summary h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-details-exclusao {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.summary-label {
    color: #4b5563;
    font-weight: 500;
}

.summary-value {
    color: #1f2937;
    font-weight: 600;
}

/* CONFIRMAÇÃO POR TEXTO */
.final-confirmation {
    background: #f0f9ff;
    border: 2px solid #0b79d0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.final-confirmation label {
    display: block;
    margin-bottom: 10px;
    color: #1e40af;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

#confirmacaoTexto {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #0b79d0;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#confirmacaoTexto:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(11, 121, 208, 0.2);
}

.confirmation-hint {
    margin-top: 8px;
    color: #6b7280;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.backup-reminder {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #92400e;
    font-size: 0.9rem;
}

/* BOTÕES DE EXCLUSÃO */
.exclusao-step-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .exclusao-modal-content {
        width: 95%;
        margin: 10px;
        padding: 15px;
    }

    .exclusao-step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .filtro-pesquisa-exclusao {
        grid-template-columns: 1fr;
    }

    .filtro-actions-exclusao {
        flex-direction: column;
    }

    .filtro-actions-exclusao button {
        width: 100%;
    }

    .list-header-exclusao {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-actions {
        width: 100%;
        justify-content: space-between;
    }

    .exclusao-step-footer {
        flex-direction: column;
        gap: 10px;
    }

    .exclusao-step-footer button {
        width: 100%;
    }
}
/* === MODAL DE CONFIRMAÇÃO SIMPLES === */
.modal-confirmacao-simples {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-confirmacao-simples.active {
    display: flex;
}

.confirmacao-simples-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUpModal 0.3s ease;
}

.confirmacao-simples-content h3 {
    margin: 0 0 15px 0;
    color: #dc2626;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.confirmacao-message-simples {
    margin: 20px 0;
    line-height: 1.5;
    white-space: pre-line;
    color: #333;
}

.confirmacao-buttons-simples {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-confirmacao-simples {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirmacao-cancelar {
    background: #6b7280;
    color: white;
}

.btn-confirmacao-confirmar {
    background: #dc2626;
    color: white;
}

.btn-confirmacao-cancelar:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.btn-confirmacao-confirmar:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}
/* ========== BOTÕES DOS MODAIS ========== */

/* Botão Visualizar no modal de importação */
.btn-visualizar-import {
    background: #246DA7 !important;
    color: white !important;
    border: 2px solid #1D5A8A !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-visualizar-import:hover {
    background: #1D5A8A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(36, 109, 167, 0.4) !important;
}

/* Botões do modal de exportação */
.btn-proximo-export {
    background: #246DA7 !important;
    color: white !important;
    border: 2px solid #1D5A8A !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-proximo-export:hover {
    background: #1D5A8A !important;
    transform: translateY(-2px) !important;
}

.btn-aplicar-filtros-export {
    background: #246DA7 !important;
    color: white !important;
    border: 2px solid #1D5A8A !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-aplicar-filtros-export:hover {
    background: #1D5A8A !important;
    transform: translateY(-2px) !important;
}

.btn-exportar-agora {
    background: #10b981 !important;  /* Verde para ação positiva */
    color: white !important;
    border: 2px solid #059669 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-exportar-agora:hover {
    background: #059669 !important;
    transform: translateY(-2px) !important;
}

/* Botões do modal de exclusão 3º ano */
.filtro-actions-exclusao button {
    background: #246DA7 !important;
    color: white !important;
    border: 2px solid #1D5A8A !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.filtro-actions-exclusao button:hover {
    background: #1D5A8A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(36, 109, 167, 0.4) !important;
}

/* === BOTÃO LIMPAR FILTROS (EXPORTAÇÃO E EXCLUSÃO) - TONS DE ROXO === */
.btn-limpar-filtros,
.filtro-actions button:not(.btn-aplicar-filtros-export):not(.btn-exportar-agora),
.filtro-actions-exclusao button:not(.btn-aplicar-filtros):not(.btn-danger) {
    background: white !important;                    /* FUNDO BRANCO */
    color: #8b5cf6 !important;                      /* TEXTO ROXO (#8b5cf6) */
    border: 2px solid #8b5cf6 !important;           /* BORDA ROXA */
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-limpar-filtros:hover,
.filtro-actions button:not(.btn-aplicar-filtros-export):not(.btn-exportar-agora):hover,
.filtro-actions-exclusao button:not(.btn-aplicar-filtros):not(.btn-danger):hover {
    background: #f5f3ff !important;                 /* FUNDO ROXO BEM CLARO NO HOVER */
    color: #7c3aed !important;                      /* TEXTO ROXO MAIS ESCURO (#7c3aed) */
    border-color: #7c3aed !important;               /* BORDA ROXA MAIS ESCURA */
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2) !important;
}

/* === BOTÃO BACKUP (AMARELO) === */
.btn-backup,
[class*="backup"] button,
.backup-reminder button {
    background: linear-gradient(135deg, #f59e0b, #e67e22) !important;
    color: white !important;
    border: 2px solid #d97706 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

.btn-backup:hover,
[class*="backup"] button:hover,
.backup-reminder button:hover {
    background: linear-gradient(135deg, #e67e22, #d97706) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4) !important;
}

/* FIM DOS BOTÕES DOS MODAIS */
