/* ========================== */
/* 🔹 Fundo apenas na tela de login */
.login-page {
    background: url('../assets/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* ========================== */
/* 🔹 Estilização do formulário de login */
.login-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: auto;
    margin-top: 100px;
}

.logo {
    max-width: 200px;
    margin-bottom: 10px;
}

/* ========================== */
/* 🔹 Estilização de elementos gerais */
.card {
    border-radius: 10px;
}

.list-group {
    position: relative;
    width: 100%;
    max-height: none;
    overflow-y: visible;
}

.list-group-item {
    cursor: pointer;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* ========================== */
/* 🔹 Ajusta a Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1030;
    background-color: #00A65A !important;
}

/* ========================== */
/* 🔹 Ajuste do menu lateral */
#menuLateral {
    position: fixed;
    top: 56px;
    left: 0;
    width: 250px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    background-color: #00A65A !important;
    padding-top: 10px;
}

#menuLateral h4 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 15px;
    padding: 15px 0;
    color: white;
}

#menuLateral::-webkit-scrollbar {
    display: none;
}

#menuDashboard .list-group-item {
    box-sizing: border-box;
    background: none;
    color: white !important;
    border: none;
    font-size: 15px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: padding 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#menuDashboard .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

#menuLateral.hidden-menu,
#menuLateral.d-none {
    transform: translateX(-100%);
}

#menuLateral.minimized {
    width: 60px;
    overflow-y: hidden;
}

#menuLateral.minimized .list-group-item span {
    display: none;
}

#menuLateral.minimized .list-group-item {
    padding: 10px;
    justify-content: center;
}

#menuLateral.minimized:hover {
    width: 250px;
    overflow-y: auto;
}

#menuLateral.minimized:hover .list-group-item span {
    display: inline;
}

#conteudoPrincipal {
    margin-left: 250px;
    margin-top: 70px;
    padding: 20px;
    width: calc(100% - 250px);
    transition: margin-left 0.3s ease-in-out;
}

#menuLateral.minimized+#conteudoPrincipal {
    margin-left: 60px;
    width: calc(100% - 60px);
}

#toggleMenu {
    font-size: 24px;
    border: none;
    background: none;
    color: white;
    cursor: pointer;
}

#menuLateral .list-group-item i {
    font-size: 20px;
    width: 25px;
    text-align: center;
}

#menuDashboard::-webkit-scrollbar {
    display: none;
}

/* ========================== */
/* 🔹 Ajuste para tabelas */
th.action-column,
td.action-column {
    width: 200px;
    text-align: center;
    padding: 0;
    vertical-align: middle;
    height: 50px;
}

td {
    padding: 0;
    vertical-align: middle;
    height: 50px;
}

td button {
    width: 45%;
    margin: 0 5px;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
}

.btn-warning:hover {
    background-color: #ffc107;
}

.btn-danger:hover {
    background-color: #dc3545;
}

td i {
    font-size: 18px;
    margin-right: 10px;
    cursor: pointer;
}

td i:hover {
    opacity: 0.7;
}

.tabela-infracoes .acoes-icons,
.tabela-alunos .acoes-icons {
    display: inline-flex;
    gap: 10px;
    justify-content: flex-start;
}

.tabela-infracoes i {
    font-size: 18px;
    padding: 5px;
}

#tabelaInfracoes th:last-child,
#tabelaInfracoes td:last-child {
    width: 150px;
    text-align: center;
}

/* ========================== */
/* 🔹 Select2 Customização Bootstrap5 (ALUNO / INFRAÇÃO / RELATÓRIOS) */
.select2-container--bootstrap5 {
    width: 100% !important;
}

.select2-container--bootstrap5 .select2-selection {
    min-height: calc(2.5rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap5 .select2-selection__rendered {
    line-height: 1.5 !important;
    padding-left: 0 !important;
    color: #495057;
}

.select2-container--bootstrap5 .select2-selection__arrow {
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    right: 0.75rem;
    width: 20px;
}

.select2-container--bootstrap5.select2-container--focus .select2-selection {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 🔹 Dropdown Custom Scroll */
.select2-dropdown-scroll .select2-results__options {
    max-height: 300px;
    overflow-y: auto;
}

/* 🔹 Correção para área visível e renderização */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    height: calc(2.5rem + 2px);
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    color: #495057;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}

/* ========================== */
/* 🔹 Estilização para seleção múltipla no Select2 */
.select2-container--bootstrap4 .select2-selection--multiple {
    min-height: calc(2.5rem + 2px);
    padding: 6px 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    background-color: #fff;
    gap: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.select2-selection__choice {
    background-color: #00a65a !important;
    /* Verde IFNMG */
    border: none !important;
    color: white !important;
    padding: 5px 10px !important;
    margin: 4px 6px 4px 0 !important;
    border-radius: 8px !important;
    /* 👈 menos curvado */
    font-size: 0.875rem !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.select2-selection__choice__remove {
    display: none !important;
}

/* .select2-selection__choice__remove:hover {
    background-color: rgba(0, 0, 0, 0.25);
} */

.select2-container--bootstrap4 .select2-selection--multiple .select2-search__field {
    font-family: inherit;
    font-size: 1rem !important;
    color: #6c757d !important;
    /* cinza padrão placeholder */
    margin: 0 !important;
    padding: 0 !important;
    height: 28px !important;
    line-height: 1.5;
}

/* 🔹 Remove efeito de estourar altura ao digitar */
.select2-container--bootstrap4 .select2-selection--multiple .select2-search {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}