* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Loader */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: white;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.loader-container.escondido {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.spinner {
    border: 3px solid rgba(105, 105, 105, 0.3);
    border-top: 3px solid rgb(62, 115, 191);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-container p {
    color: rgb(127, 127, 127);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Header PWA */
.pwa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3e73bf 0%, #2c5aa0 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #f0f0f0;
}

.header-menu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.header-datetime {
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
}

.header-menu:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-menu:active {
    background: rgba(255, 255, 255, 0.4);
}

/* User Info Bar */
.user-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: #1565c035 0px 8px 12px;
    position: sticky;
    top: 70px;
    z-index: 99;
}

.user-info-content {
    display: flex;
    align-items: center;
    gap: 10px;
}


.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #0066cc;
    text-decoration: underline;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.btn-sair {
    background-color: #34343400;
    color: rgb(225, 65, 65);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
    text-decoration: underline;
}

.btn-sair:hover {
    background-color: #c823331e;
}

.btn-sair:active {
    background-color: #bd213151;
}

/* Modal de Sucesso */
.modal-sucesso {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-sucesso-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-sucesso-content {
    position: relative;
    z-index: 10003;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-sucesso-icon {
    font-size: 60px;
    color: #4caf50;
    margin-bottom: 15px;
}

.modal-sucesso-content h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-sucesso-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.btn-fechar-sucesso {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-fechar-sucesso:hover {
    background-color: #45a049;
}

.btn-fechar-sucesso:active {
    background-color: #3d8b40;
    transform: scale(0.98);
}

/* Modal de Aviso */
.modal-aviso {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-aviso-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-aviso-content {
    position: relative;
    z-index: 10003;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    animation: slideUp 0.4s ease-out;
}

.modal-aviso-icon {
    font-size: 60px;
    color: #ff9800;
    margin-bottom: 15px;
}

.modal-aviso-content h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-aviso-content p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-aviso-botoes {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancelar-aviso,
.btn-confirmar-aviso,
.btn-entendido-aviso {
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.btn-cancelar-aviso {
    background-color: #e0e0e0;
    color: #333;
}

.btn-cancelar-aviso:hover {
    background-color: #d0d0d0;
}

.btn-cancelar-aviso:active {
    background-color: #c0c0c0;
    transform: scale(0.98);
}

/* Específico para botão de cancelar no modal de exclusão */
#modalConfirmacaoExclusao .btn-cancelar-aviso {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #d0d0d0;
    padding: 12px 32px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

#modalConfirmacaoExclusao .btn-cancelar-aviso:hover {
    background-color: #e8e8e8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#modalConfirmacaoExclusao .btn-cancelar-aviso:active {
    background-color: #d8d8d8;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Container de botões para modal de exclusão */
#modalConfirmacaoExclusao .modal-aviso-botoes {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 0 20px;
}

.btn-confirmar-aviso,
.btn-entendido-aviso {
    background-color: #19c62d;
    color: rgb(241, 241, 241);
}



.btn-confirmar-exclusao {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}


.btn-fechar-aviso {
    background-color: #f57c00;
}

.btn-fechar-aviso:active {
    background-color: #e65100;
    transform: scale(0.98);
}

.btn-voltar-chamada-duplicada {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-voltar-chamada-duplicada:hover {
    background-color: #d0d0d0;
}

.btn-voltar-chamada-duplicada:active {
    background-color: #c0c0c0;
    transform: scale(0.98);
}

.btn-sim-editar-chamada-duplicada {
    background-color: #19c62d;
    color: rgb(253, 253, 253);
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* ========== MODAL DE PERFIL DO USUÁRIO ========== */
.modal-perfil-usuario {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.modal-perfil-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-perfil-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    z-index: 9999;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn-fechar-perfil {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 5px;
}

.btn-fechar-perfil:hover {
    color: #333;
}

.perfil-usuario-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.perfil-usuario-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    flex-shrink: 0;
}

.perfil-usuario-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: #333;
    word-break: break-word;
}

.info-value.nome-usuario {
    font-size: 16px;
    font-weight: 600;
    color: #0066cc;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 600px) {
    .pwa-header {
        padding: 10px 15px;
    }

    .header-logo {
        width: 35px;
        height: 35px;
    }

    .header-title {
        font-size: 14px;
    }


    .btn-sair {
        padding: 6px 12px;
        font-size: 15px;
    }

    .user-name {
        font-size: 12px;
        max-width: 300px;
    }
}

/* Conteúdo principal */
.conteudo-principal {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto 0;
}

#nomeUsuario,
.conteudo-principal h1 {
    font-weight: 400;
    color: #3c3c3c;
    text-align: center;
    font-size: 28px;
}

/* Registro de Atividades */
.registro-de-atividades {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.atividades-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.atividades-container h2 {
    padding: 20px;
    background: linear-gradient(135deg, #3e73bf 0%, #2c5aa0 100%);
    color: white;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.atividades-list {
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.atividade-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s ease;
}

.atividade-item:last-child {
    border-bottom: none;
}

.atividade-item:hover {
    background-color: #f9f9f9;
}

.atividade-item.loading,
.atividade-item.vazio,
.atividade-item.erro {
    justify-content: center;
    padding: 30px 20px;
    background-color: #f0f0f0;
    color: #999;
    font-size: 14px;
}

.atividade-item.erro {
    background-color: #fff3f3;
    color: #d32f2f;
}

.atividade-usuario {
    font-weight: 600;
    color: #3e73bf;
    font-size: 14px;
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atividade-descricao {
    flex: 1;
    color: #3c3c3c;
    font-size: 14px;
}

.atividade-hora {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
    min-width: 160px;
    text-align: right;
}

/* Responsividade */
@media (max-width: 768px) {
    .atividade-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 12px 15px;
    }

    .atividade-usuario {
        width: 100%;
    }

    .atividade-hora {
        width: 100%;
        text-align: left;
    }

    .atividades-list {
        max-height: 190px;
    }

    .atividades-container h2 {
        padding: 15px;
        font-size: 16px;
    }
}

/* Botão Registrar Chamadas */
main {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    flex-wrap: wrap;
}

.btn-registrar-chamadas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 120px;
    height: 120px;
    background-color: #d3d3d3;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-registrar-chamadas:hover {
    background-color: #c0c0c0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-registrar-chamadas:active {
    background-color: #b0b0b0;
    transform: translateY(-1px);
}

.btn-gerenciar-dados:hover {
    background-color: #c0c0c0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-registrar-icon {
    width: 50px;
    height: 80px;
}

.btn-registrar-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

/* Botão Gerar Planilha */
.btn-gerar-planilha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 120px;
    height: 120px;
    background-color: #d3d3d3;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-gerar-planilha:hover {
    background-color: #c0c0c0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-gerar-planilha:active {
    background-color: #b0b0b0;
    transform: translateY(-1px);
}

.btn-gerar-planilha-icon {
    width: 60px;
}

.btn-gerar-planilha-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

/* Botão Gerenciar Dados */
.btn-gerenciar-dados {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 120px;
    height: 120px;
    background-color: #d3d3d3;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-gerenciar-dados-icon {
    width: 60px;
}

.btn-gerenciar-dados-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    text-align: center;
}

/* ========== BOTÕES GERENCIAR DADOS ========== */
.gerenciar-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 20px;
    flex-wrap: wrap;
}

.info-container {
    width: 100%;
    background-color: #e6f2ff;
    border-left: 4px solid #0798ff;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.info-container i {
    color: #0762ff;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-container p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 800px;
}

.btn-adicionar-aluno,
.btn-editar-aluno {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 3px 13px;
    background: linear-gradient(135deg, #3e73bf 0%, #2c5aa0 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(62, 115, 191, 0.35);
}


.btn-adicionar-aluno img,
.btn-editar-aluno img {
    width: 25px;
    height: 34px;
}

/* ========== DROPDOWN CUSTOMIZADO ========== */
.custom-dropdown {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-toggle:hover:not(:disabled) {
    border-color: #3e73bf;
    box-shadow: 0 2px 8px rgba(62, 115, 191, 0.15);
}

.dropdown-toggle:active:not(:disabled) {
    box-shadow: 0 1px 4px rgba(62, 115, 191, 0.2);
    transform: translateY(1px);
}

.dropdown-toggle.active {
    border-color: #3e73bf;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 12px rgba(62, 115, 191, 0.2);
}

.dropdown-toggle i {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #3e73bf;
}

.dropdown-toggle.active i {
    transform: rotate(180deg);
}

.dropdown-label {
    flex: 1;
    text-align: left;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu.active {
    max-height: 235px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.dropdown-item {
    padding: 16px 16px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover:not(.loading):not(.empty):not(.erro) {
    background-color: #f5f9ff;
    color: #3e73bf;
    font-weight: 500;
}

.dropdown-item:active:not(.loading):not(.empty):not(.erro) {
    background-color: #e8f1ff;
}

.dropdown-item.selected {
    background-color: #e8f1ff;
    color: #3e73bf;
    font-weight: 600;
    border-left: 4px solid #3e73bf;
    padding-left: 12px;
}

.dropdown-item.loading,
.dropdown-item.empty,
.dropdown-item.erro {
    text-align: center;
    color: #999;
    font-size: 14px;
    cursor: default;
    padding: 20px 16px;
}

.dropdown-item.erro {
    color: #d32f2f;
    background-color: #fff3f3;
}

/* Responsividade para Mobile */
@media (max-width: 600px) {
    .custom-dropdown {
        max-width: 100%;
    }

    .dropdown-toggle {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 6px;
    }

    .dropdown-menu {
        border-radius: 0 0 6px 6px;
    }

    .dropdown-menu.active {
        max-height: 235px;
        overflow-y: auto;
    }

    .dropdown-item {
        padding: 16px 16px;
        font-size: 16px;
    }

    .dropdown-item.selected {
        padding-left: 12px;
    }

    .dropdown-toggle i {
        font-size: 20px;
    }
}

/* Scroll personalizado para o dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ========== BOT\u00c3O INICIAR REGISTRO ========== */
.btn-iniciar-registro {
    background: #ffffff00;
    color: rgb(40, 154, 25);
    border: 1px solid #25b41581;
    padding: 6px 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

/* ========== MODAL DE CHAMADA ========== */
.modal-chamada {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-chamada-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-chamada-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #3e73bf;
    color: white;
    border-radius: 12px 12px 0 0;
    transition: background 0.3s ease;
}

.modal-chamada-header.edit-mode {
    background: #FF9500;
}

.modal-chamada-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-chamada-info-header {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
    color: #495057;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.modal-chamada-data {
    padding: 12px 20px;
    background: #e3f2fd;
    border-bottom: 1px solid #bbdefb;
    font-size: 14px;
    color: #1976d2;
    font-weight: 600;
}

.btn-fechar-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.btn-fechar-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

.btn-fechar-modal:active {
    background: rgba(255, 255, 255, 0.4);
}

.modal-chamada-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.lista-chamada {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-chamada {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3e73bf;
    transition: all 0.2s ease;
}

.item-chamada:hover {
    background: #f0f5ff;
    box-shadow: 0 2px 8px rgba(62, 115, 191, 0.15);
}

.item-chamada-info {
    flex: 1;
}

.item-chamada-nome {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 4px;
}

.item-chamada-matricula {
    color: #666;
    font-size: 13px;
}

.item-chamada-opcoes {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.btn-opcao {
    padding: 8px 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.btn-opcao:hover {
    border-color: #3e73bf;
    color: #3e73bf;
    box-shadow: 0 2px 6px rgba(62, 115, 191, 0.2);
}

.btn-opcao.presenca {
    border-color: #4CAF50;
    color: #4CAF50;
}

.btn-opcao.presenca.selecionado {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.btn-opcao.falta-nj {
    border-color: #F44336;
    color: #F44336;
}

.btn-opcao.falta-nj.selecionado {
    background: #F44336;
    color: white;
    border-color: #F44336;
}

.btn-opcao.falta-j {
    border-color: #2196F3;
    color: #2196F3;
}

.btn-opcao.falta-j.selecionado {
    background: #2196F3;
    color: white;
    border-color: #2196F3;
}

.btn-opcao.selecionado {
    font-weight: 700;
}

/* Responsividade para Mobile */
@media (max-width: 600px) {
    .modal-chamada-content {
        width: 95%;
        max-height: 90vh;
    }

    .item-chamada {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .item-chamada-opcoes {
        width: 100%;
        margin-left: 0;
        gap: 6px;
    }

    .btn-opcao {
        flex: 1;
        padding: 10px 8px;
        min-width: auto;
    }

    .modal-chamada-header {
        padding: 15px;
    }

    .modal-chamada-header h2 {
        font-size: 18px;
    }

    .modal-chamada-data {
        padding: 10px 15px;
        font-size: 13px;
    }

    .modal-chamada-info-header {
        padding: 10px 15px;
        font-size: 13px;
    }

    .btn-fechar-modal {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* ========== FOOTER DO MODAL DE CHAMADA ========== */
.modal-chamada-footer {
    display: none;
}

.btn-salvar-chamada {
    background: #3e73bf;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(62, 115, 191, 0.3);
    flex-shrink: 0;
}

.btn-salvar-chamada i {
    font-size: 18px;
}

.btn-salvar-chamada span {
    font-size: 14px;
    font-weight: 500;
}

/* ========== CONTAINER DE CHAMADAS SALVAS ========== */
.chamadas-salvas-container {
    margin-top: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chamadas-salvas-titulo {
    font-size: 18px;
    font-weight: 600;
    color: #3c3c3c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3e73bf;
}

.lista-chamadas-salvas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* ========== CARD DE CHAMADA SALVA ========== */
.card-chamada-salva {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #3e73bf;
}

.card-chamada-salva:hover {
    box-shadow: 0 4px 12px rgba(62, 115, 191, 0.15);
    transform: translateY(-2px);
}

.card-chamada-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.card-chamada-info {
    flex: 1;
}

.card-chamada-sala {
    font-size: 16px;
    font-weight: 600;
    color: #3c3c3c;
    margin-bottom: 4px;
}

.card-chamada-data {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.card-chamada-hora {
    font-size: 12px;
    color: #bbb;
}

.card-chamada-acoes {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-card-acao {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-card-editar {
    color: #3e73bf;
}

.btn-card-editar:hover {
    background-color: #e8f1ff;
}

.btn-card-remover {
    color: #f44336;
}

.btn-card-remover:hover {
    background-color: #ffebee;
}

.card-chamada-alunos {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.card-chamada-alunos-titulo {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-chamada-alunos-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.card-aluno-presenca {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-aluno-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.card-aluno-badge.presente {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.card-aluno-badge.falta-nj {
    background-color: #ffcdd2;
    color: #c62828;
}

.card-aluno-badge.falta-j {
    background-color: #bbdefb;
    color: #1565c0;
}

.card-aluno-nome {
    flex: 1;
    color: #333;
}


.modal-loader-envio {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}

.modal-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUpLoader {
    from {
        opacity: 0;
        transform: translate(-50%, -50%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUpLoader 0.3s ease-out;
}

.modal-loader-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-loader-content h2 {
    margin: 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.modal-loader-progress {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.modal-loader-bar-container {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.modal-loader-bar {
    background: linear-gradient(90deg, #3e73bf, #2c5aa0);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.modal-loader-detalhes {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* ========== BOT\u00c3O ENVIAR PARA O BANCO ========== */
.btn-enviar-banco {
    background-color: #808080;
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Responsividade para Mobile */
@media (max-width: 600px) {
    .lista-chamadas-salvas {
        grid-template-columns: 1fr;
    }

    .chamadas-salvas-container {
        margin-top: 30px;
        padding: 15px;
    }

    .card-chamada-header {
        flex-direction: column;
    }

    .card-chamada-acoes {
        margin-top: 12px;
    }
}

/* Animações para notificações */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* ========== MODAIS DE ENVIO PARA SUPABASE ========== */

/* Modal de Envio em Progresso */
.modal-envio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-envio>div {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease-out;
}

.modal-envio .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    margin: 20px auto;
}

.modal-envio h2 {
    font-size: 18px;
    color: #333;
    margin: 20px 0;
}

.modal-envio #modalEnvioProgresso {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.modal-envio #modalEnvioBarraProgresso {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.modal-envio #modalEnvioBarraProgresso>div {
    background: linear-gradient(90deg, #3498db, #2ecc71);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.modal-envio #modalEnvioDetalhes {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Modal de Resultado */
.modal-resultado-envio {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.modal-resultado-envio>div {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease-out;
}

#modalResultadoIcone {
    text-align: center;
    margin-bottom: 20px;
}

#modalResultadoTitulo {
    text-align: center;
    margin: 20px 0;
    font-size: 20px;
}

#modalResultadoMensagem {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

#modalResultadoStats {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 13px;
    color: #555;
}

#modalResultadoStats>div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

#modalResultadoStats>div:last-child {
    border-bottom: none;
}

#modalResultadoStats strong {
    font-weight: 600;
}

#modalResultadoDetalhes {
    display: none;
    background: #fff3cd;
    border-left: 4px solid #FF9800;
    padding: 12px;
    border-radius: 5px;
    margin: 15px 0;
    font-size: 12px;
    color: #856404;
    max-height: 200px;
    overflow-y: auto;
}

/* ========== BOTÃO VISUALIZAR ALUNO ========== */
.btn-visualizar-aluno {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 3px 13px;
    background: linear-gradient(135deg, #3e73bf 0%, #2c5aa0 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(62, 115, 191, 0.35);
}

.btn-visualizar-aluno:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(62, 115, 191, 0.45);
}

.btn-visualizar-aluno:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(62, 115, 191, 0.25);
}

.btn-visualizar-aluno img {
    width: 25px;
    height: 34px;
}

/* ========== VISUALIZAÇÃO DE DADOS DO ALUNO ========== */
.dados-aluno-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aluno-info-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #3e73bf;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aluno-info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aluno-info-item label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aluno-info-item p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

/* Resumo Geral */
.resumo-geral {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.resumo-geral h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resumo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.resumo-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3e73bf;
    text-align: center;
}

.resumo-item label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.resumo-item p {
    font-size: 24px;
    font-weight: 700;
    color: #3e73bf;
    margin: 0;
}

.valor-presenca {
    color: #19c62d !important;
}

.valor-falta-nj {
    color: #f44336 !important;
}

.valor-falta-j {
    color: #ff9800 !important;
}

/* Destaques */
.destaques {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.destaque-item {
    padding: 20px;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.destaque-item h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.destaque-mes {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.destaque-valor {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

.melhor-mes {
    background: linear-gradient(135deg, #19c62d 0%, #0ea925 100%);
    box-shadow: 0 4px 12px rgba(25, 198, 45, 0.3);
}

.pior-mes {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Estatísticas por Mês */
.estatisticas-mensais {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.estatisticas-mensais h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.mes-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    border-left: 4px solid #3e73bf;
    transition: all 0.3s ease;
}

.mes-card:hover {
    background: #f5f5f5;
    border-color: #3e73bf;
    box-shadow: 0 2px 8px rgba(62, 115, 191, 0.15);
}

.mes-card.mes-alerta {
    border-left-color: #ff9800;
    background: #fffbf0;
}

.mes-card.mes-alerta:hover {
    border-color: #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.mes-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mes-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.stat-valor {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.stat-valor.presenca {
    color: #19c62d;
}

.stat-valor.falta-nj {
    color: #f44336;
}

.stat-valor.falta-j {
    color: #ff9800;
}

/* Visualização de Presença por Mês */
.visualizacao-meses {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.visualizacao-meses h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.linha-mes {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    margin-bottom: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #3e73bf;
}

.mes-nome {
    min-width: 120px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.dias-bolinha-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.bolinha {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bolinha:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.bolinha-presenca {
    background-color: #19c62d;
    color: white;
    border-color: #0ea925;
}

.bolinha-falta-nj {
    background-color: #f44336;
    color: white;
    border-color: #d32f2f;
}

.bolinha-falta-j {
    background-color: #2196f3;
    color: white;
    border-color: #1565c0;
}

.bolinha-vazia {
    background-color: #e0e0e0;
    color: #999;
    border-color: #bdbdbd;
}
}

#modalResultadoDetalhes strong {
    display: block;
    margin-bottom: 8px;
}

#modalResultadoDetalhes>div {
    padding: 5px 0;
    border-bottom: 1px solid #ffebcd;
}

#modalResultadoDetalhes>div:last-child {
    border-bottom: none;
}

.modal-resultado-envio button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.modal-resultado-envio button:hover {
    background: #2980b9;
}

.modal-resultado-envio button:active {
    transform: scale(0.98);
}

/* ========== MODAL ADICIONAR ALUNO ========== */
.modal-adicionar-aluno {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-adicionar-aluno.ativo {
    display: flex;
}

.modal-adicionar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-adicionar-content {
    position: relative;
    z-index: 10003;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.4s ease-out;
}

.modal-adicionar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-adicionar-header h2 {
    color: #333;
    font-size: 22px;
    margin: 0;
    font-weight: 600;
}

.btn-fechar-modal {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-fechar-modal:hover {
    background-color: #f5f5f5;
    color: #333;
}

.btn-fechar-modal:active {
    background-color: #ebebeb;
}

/* Estilos do Formulário */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background-color: #fafafa;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
}

.form-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3e73bf;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(62, 115, 191, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Específico para inputs de texto */
#inputMatricula,
#inputNome {
    font-size: 15px;
}

/* Específico para selects */
#selectTurma,
#selectTurno,
#selectStatus {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233e73bf' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

#selectTurma option,
#selectTurno option,
#selectStatus option {
    padding: 8px 12px;
    background-color: white;
    color: #333;
}

/* Validação de Inputs */
.form-group input.error {
    border-color: #f44336;
    background-color: #fff5f5;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.form-error {
    color: #f44336;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-group input.error~.form-error {
    display: block;
}

/* Container de Botões */
.modal-botoes {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancelar-modal,
.btn-enviar-modal {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cancelar-modal {
    background-color: #e0e0e0;
    color: #333;
    flex: 1;
    min-width: 120px;
}

.btn-cancelar-modal:hover {
    background-color: #d0d0d0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cancelar-modal:active {
    background-color: #c0c0c0;
    transform: scale(0.98);
}

.btn-enviar-modal {
    background: linear-gradient(135deg, #3e73bf 0%, #2c5aa0 100%);
    color: white;
    flex: 1;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(62, 115, 191, 0.35);
}

.btn-enviar-modal:hover {
    box-shadow: 0 6px 16px rgba(62, 115, 191, 0.45);
    transform: translateY(-2px);
}

.btn-enviar-modal:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(62, 115, 191, 0.35);
}

.btn-enviar-modal:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animações */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}