body {
    font-size: .9rem !important;
    background: url(img/header-bg.jpg) no-repeat center top;
    background-color: var(--lev-light);
    background-size: 101% 350px
}

/* Customização global da barra de scroll */
::-webkit-scrollbar {
    width: 16px !important;
    height: 16px !important;
}

::-webkit-scrollbar-track {
    background: #0089d8;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0089d8;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #0089d8;
}

/* Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: #0089d8 #f1f1f1;
}

[class*=container] {
    padding: 0 1.5rem !important
}

@media(min-width:992px) {
    body {
        display: flex;
        flex-direction: column
    }
}

@media (max-width: 991.98px) {
    body {
        background-size: 100% 200px
    }
}

/* header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    margin-bottom: 1.6rem;
} */

header .navbar-toggler {
    padding: .5rem;
    border-color: transparent
}

header .navbar-toggler-icon {
    opacity: 1
}

header nav {
    height: 5rem
}

header .nav-link {
    transition: all 100ms;
    padding: .65rem 1rem !important;
    border-radius: .375rem;
    font-weight: 600;
    color: #fff
}

header .navbar-nav .nav-link.active,
header .nav-link:focus,
header .nav-link:hover,
header .navbar-nav .nav-link.active,
header .navbar-nav .nav-link.show,
header .navbar-text a,
header .navbar-text a:focus,
header .navbar-text a:hover,
header .dropdown:hover .nav-link {
    /* color: rgba(255, 255, 255, 0.5)  */
    color: #FFF;
    background: rgba(255, 255, 255, 0.1)
}


header .dropdown-menu-apps.show {
    background: rgba(0, 0, 0, .85);
    display: flex;
    flex-direction: column
}

header .dropdown-item {
    display: flex;
    gap: .25rem;
    line-height: auto;
    align-items: center
}

header .dropdown:focus,
header .dropdown:hover {
    color: var(--lev-primary) !important;
    background: none !important
}

.dropdown.fade-up .dropdown-menu.dropdown-menu-end {
    right: 0
}

/* .dropdown > .dropdown-menu { */
/* box-shadow: 0 0 3rem rgba(0,0,0,.125); */
/* display: block;
    opacity: 0; */
/* border: 0; */
/* } */

/*
.dropdown.fade-up > .dropdown-menu { margin-top: 1rem }

.dropdown.fade-left > .dropdown-menu {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.25);
    top: 0;
    margin-left: 1rem }

.dropdown.fade-up > .dropdown-menu > *,
.dropdown.fade-left > .dropdown-menu > * { display: none }

.dropdown:hover > .dropdown-menu {
    transition: all 300ms;
    opacity: 1 }

.dropdown.fade-up:hover > .dropdown-menu { margin-top: 0 }

.dropdown.fade-left:hover > .dropdown-menu { margin-left: -2rem }

.dropdown:hover > .dropdown-menu > * { display: block }

.dropdown-item.active,
.dropdown-item:active { background:var(--lev-primary) }

.dropdown-menu.shadow { box-shadow:0px 0px 2rem 0px rgba(0, 0, 0, 0.15) !important } */

/* .dropdown:hover > .dropdown-menu { display: block } */

/* .dropdown .dropdown:hover > .dropdown-menu {
    top: 0;
    left: calc(100% - .5rem) } */

.dropdown-menu {
    --lev-dropdown-font-size: .9rem !important
}

.btn {
    font-weight: 700 !important;
    --lev-btn-font-size: .9rem !important
}

.btn-primary {
    color: #FFF !important
}

.breadcrumb.text-white-50 .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, .5) !important
}

.w-16 {
    width: 1rem
}

.w-24 {
    width: 1.5rem
}

.w-32 {
    width: 2rem
}

.w-40 {
    width: 2.5rem
}

.w-48 {
    width: 3rem
}

.w-65 {
    width: 65% !important
}

.h-16 {
    height: 1rem
}

.h-24 {
    height: 1.5rem
}

.h-32 {
    height: 2rem
}

.h-40 {
    height: 2.5rem
}

.h-48 {
    height: 3rem
}

.max-zindex {
    z-index: 999999 !important;
}

/* Autocomplete com scroll */
.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.img-cover {
    object-fit: cover
}

.modal-body,
.modal-footer {
    background: var(--lev-gray-100) !important
}

.modal-footer>* {
    margin: 0
}

.form-control {
    font-size: .9rem !important
}

@media(max-width:768px) {
    .table-responsive {
        overflow-x: scroll
    }
}

th {
    text-transform: uppercase;
    font-size: 87.5%;
    color: var(--lev-gray-500) !important
}

table tr>* {
    border-color: rgba(0, 0, 0, .075);
    border-style: dashed
}

tr>:first-child {
    padding-left: .5rem
}

tr>:last-child {
    padding-right: .5rem
}


.table-footer-paginate {
    padding: .5rem 0
}

.table-footer-paginate p {
    margin: 0
}

.table .table-actions .opacity-50:hover {
    opacity: 1 !important
}

.table>tbody>tr:nth-of-type(odd)>* {
    --lev-table-color-type: var(--lev-table-striped-color);
    --lev-table-bg-type: var(--lev-table-striped-bg);
}

.pagination {
    margin: 0;
    gap: .25rem
}

.pagination .disabled .page-link {
    opacity: .5;
    background: none
}

.pagination .page-link {
    font-size: .9rem;
    border: 0;
    border-radius: .375rem
}

.pagination :not(.active) .page-link {
    color: currentColor
}

.pagination :not(.active) .page-link:hover {
    color: var(--lev-primary)
}

.modal-content {
    box-shadow: 0 0 0 10000px rgb(0 0 0 / 37%)
}

@media(min-width:480px) {
    .w-320px {
        width: 320px
    }
}

@media(max-width:479.98px) {
    .w-320px {
        width: 100%
    }
}

/* intl-tel-input */
.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 0 !important;
}

.iti__country-list {
    z-index: 3 !important;
}

/* Flex Properties */
.flex-grow-4 {
    flex-grow: 4 !important
}

.scroll-y {
    overflow-y: auto
}

/* Customização da barra de scroll */
.scroll-y::-webkit-scrollbar {
    width: 40px !important;
}

.scroll-y::-webkit-scrollbar-track {
    background: #0089d8;
    border-radius: 10px;
}

.scroll-y::-webkit-scrollbar-thumb {
    background: #0089d8;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.scroll-y::-webkit-scrollbar-thumb:hover {
    background: #0089d8;
}

/* Firefox */
.scroll-y {
    scrollbar-width: auto;
    scrollbar-color: #0089d8 #f1f1f1;
}

/* Choices */
.choices {
    margin-bottom: 0px !important;
    width: 100% !important;
}

.choices__inner {
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: var(--lev-border-radius) !important;
    background-color: #FFF !important;
    padding: 3.75px 7.5px 3.75px !important;
}

.choices__item {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.choices__list--dropdown .choices__item--selectable:after {
    display: none !important;
}

.choices__list--dropdown .choices__item--selectable {
    padding-right: 0 !important;
}

.input-group:has(button)>.choices>.choices__inner {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.is-invalid {
    border: 1px solid #dc3545 !important;

}

.is-invalid::after {
    position: absolute;
    font-family: 'Font Awesome 6 Pro';
    font-weight: 300;
    content: "\f06a";
    color: #dc3545;
    font-size: 20px;
    right: 40px;
}

.rotating {
    animation: rotating 2s linear infinite;
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.texto-contraste-pb {
    background: inherit;
    background-clip: text;
    -webki-background-clip: text;
    color: transparent;
    filter: invert(1) grayscale(1) contrast(100);
}

.swal2-container {
    z-index: 999999 !important;
}

/* Upload de Imagens */
.file-upload-modern {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.file-upload-modern:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.file-upload-modern input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.file-upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: #6c757d;
}

.file-upload-modern.file-selected {
    border-color: #28a745;
    background: #d4edda;
}

.file-upload-modern.file-selected .file-upload-icon {
    color: #28a745;
}

.image-preview-container {
    text-align: center;
}

.image-preview-container img {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Formatação de textareas para preservar quebras de linha */
.textarea-no-br {
    white-space: pre-wrap !important;
}

.textarea-no-br::placeholder {
    white-space: pre-wrap !important;
}

/* Personalização do plugin multiselect */
.ms-options {
    min-height: 50px !important;
    /* Altere este valor conforme necessário */
    max-height: 300px !important;
    /* Limita altura máxima */
}

/* ===================================
   TABELAS MODERNAS E CARDS MOBILE
   ================================== */

/* Tabela Desktop - Projetos Acadêmicos */
.projetos-table-desktop {
    display: block;
}

.projetos-cards-mobile {
    display: none;
}

.projetos-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.projetos-table thead {
    background: linear-gradient(135deg, var(--lev-primary) 0%, var(--lev-primary-dark) 100%);
}

.projetos-table thead th {
    font-weight: 700;
    padding: 1rem 0.75rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
}

.projetos-table thead th i {
    opacity: 0.9;
}

.projetos-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--lev-gray-200);
}

.projetos-table tbody tr:hover {
    background: var(--lev-gray-100);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.projetos-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.projetos-table tbody td:first-child {
    width: 50px;
}

.projetos-table .td-tema {
    min-width: 200px;
}

.projetos-table .td-tema strong {
    color: var(--lev-dark);
    font-size: 0.95rem;
}

.projetos-table .td-tema small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.projetos-table .td-inscricoes {
    min-width: 140px;
}

.projetos-table .td-inscricoes small {
    display: block;
    line-height: 1.5;
}

/* Badges para tabela */
.badge-tipo-table,
.badge-info-table {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--lev-secondary);
    color: var(--lev-primary);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-status-table {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-status-table.badge-status-1 {
    background: #d4edda;
    color: #155724;
}

.badge-status-table.badge-status-2 {
    background: #fff3cd;
    color: #856404;
}

.badge-status-table.badge-status-3 {
    background: #cce5ff;
    color: #004085;
}

.badge-status-table.badge-status-4 {
    background: #f8d7da;
    color: #721c24;
}

.badge-status-table.badge-status-5 {
    background: #d1ecf1;
    color: #0c5460;
}

/* Botões de ação na tabela */
.td-acoes {
    position: sticky;
    right: 0;
    background-color: white;
    z-index: 10;
}

.projetos-table tbody tr:hover .td-acoes {
    background: var(--lev-gray-100);
}

.btn-group-acoes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-acao {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--lev-gray-300);
    background: white;
    color: var(--lev-gray-600);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-acao:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-acao.btn-editar:hover {
    border-color: var(--lev-primary);
    color: var(--lev-primary);
    background: var(--lev-secondary);
}

.btn-acao.btn-deletar:hover {
    border-color: var(--lev-danger);
    color: white;
    background: var(--lev-danger);
}

.btn-acao i {
    font-size: 1rem;
}

/* Cards Mobile - Projetos Acadêmicos */
.projeto-card-mobile {
    background: white;
    border-radius: 12px;
    border: 2px solid var(--lev-gray-200);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.projeto-card-mobile:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--lev-primary);
}

.projeto-card-header-mobile {
    padding: 1rem;
    background: linear-gradient(135deg, var(--lev-secondary) 0%, white 100%);
    border-bottom: 2px solid var(--lev-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.projeto-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.projeto-badges .badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-status {
    display: inline-block;
}

.badge-status.badge-status-1 {
    background: #d4edda;
    color: #155724;
}

.badge-status.badge-status-2 {
    background: #fff3cd;
    color: #856404;
}

.badge-status.badge-status-3 {
    background: #cce5ff;
    color: #004085;
}

.badge-status.badge-status-4 {
    background: #f8d7da;
    color: #721c24;
}

.badge-status.badge-status-5 {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-tipo {
    background: var(--lev-secondary);
    color: var(--lev-primary);
}

.projeto-card-body-mobile {
    padding: 1rem;
}

.projeto-card-title-mobile {
    font-size: 1rem;
    font-weight: 700;
    color: var(--lev-dark);
    margin-bottom: 1rem;
}

.projeto-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--lev-gray-300);
}

.projeto-info-row:last-child {
    border-bottom: none;
}

.projeto-info-row .info-label {
    font-size: 0.85rem;
    color: var(--lev-gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.projeto-info-row .info-value {
    font-size: 0.85rem;
    color: var(--lev-dark);
    font-weight: 600;
    text-align: right;
}

.projeto-card-footer-mobile {
    padding: 1rem;
    background: var(--lev-gray-100);
    border-top: 2px solid var(--lev-gray-200);
    display: flex;
    gap: 0.75rem;
}

.btn-acao-mobile {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--lev-gray-300);
    background: white;
    color: var(--lev-gray-700);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-acao-mobile.btn-editar:hover {
    border-color: var(--lev-primary);
    color: var(--lev-primary);
    background: var(--lev-secondary);
}

.btn-acao-mobile.btn-deletar:hover {
    border-color: var(--lev-danger);
    color: white;
    background: var(--lev-danger);
}

/* Empty State */
.empty-state-container {
    padding: 60px 20px !important;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.empty-state-icon {
    margin-bottom: 20px;
}

.empty-state-icon i {
    font-size: 80px;
    color: var(--lev-gray-400);
    opacity: 0.5;
}

.empty-state-title {
    color: var(--lev-gray-600);
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state-text {
    color: var(--lev-gray-500);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Paginação */
.table-footer-paginate {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
}

/* Alert customizado */
.alert-custom {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    color: #856404;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 992px) {
    .projetos-table-desktop {
        display: none;
    }

    .projetos-cards-mobile {
        display: block;
    }

    .modulos-table-desktop {
        display: none !important;
    }

    .modulos-cards-mobile {
        display: block !important;
    }

    /* Ajustes para cards mobile */
    .projeto-card-mobile {
        margin-bottom: 1rem;
    }

    .projeto-badges .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (min-width: 993px) {
    .projetos-cards-mobile {
        display: none;
    }

    .modulos-cards-mobile {
        display: none !important;
    }

    .modulos-table-desktop {
        display: block !important;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 576px) {
    .projetos-table {
        font-size: 0.85rem;
    }

    .projeto-card-header-mobile {
        padding: 0.75rem;
    }

    .projeto-card-body-mobile,
    .projeto-card-footer-mobile {
        padding: 0.75rem;
    }

    .projeto-card-title-mobile {
        font-size: 0.95rem;
    }

    .projeto-info-row {
        padding: 0.4rem 0;
    }

    .projeto-info-row .info-label,
    .projeto-info-row .info-value {
        font-size: 0.8rem;
    }

    .btn-acao-mobile {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* Hover effects para tabelas */
.modulos-table tbody tr,
.projetos-table tbody tr {
    cursor: pointer;
}

/* Estados de seleção */
.projetos-table tbody tr.selected,
.projeto-card-mobile.selected {
    background: rgba(0, 158, 247, 0.08);
    border-color: var(--lev-primary) !important;
}

.projetos-table tbody tr.selected:hover {
    background: rgba(0, 158, 247, 0.12);
}

.projetos-table tbody tr.selected td:last-child {
    background: rgba(0, 158, 247, 0.08);
}

.projetos-table tbody tr.selected:hover td:last-child {
    background: rgba(0, 158, 247, 0.12);
}

.projeto-card-mobile.selected {
    box-shadow: 0 4px 16px rgba(0, 158, 247, 0.2);
}

.modulos-table tbody tr:hover td:last-child,
.projetos-table tbody tr:hover td:last-child {
    background-color: var(--lev-gray-100);
}

/* Estilos para inputs desabilitados em autocomplete 
   Só aplica quando o container pai DIRETO tem a classe disabled-autocomplete
   Use a classe disabled-autocomplete nos autocompletes que devem parecer desabilitados mas ainda enviar dados */
.disabled-autocomplete>.input-group>input.form-control {
    pointer-events: none !important;
    opacity: 0.5 !important;
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
}

.disabled-autocomplete>.input-group>input.autocomplete,
.disabled-autocomplete>.input-group>input.ui-autocomplete-input {
    pointer-events: none !important;
    opacity: 0.5 !important;
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
}

/* Desabilita o botão de adicionar (+) quando o autocomplete está desabilitado */
.disabled-autocomplete>.input-group>button {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Estilo para select com classe disabled-classificado (visual de desabilitado mas envia dados) */
.disabled-classificado {
    pointer-events: none !important;
    opacity: 0.5 !important;
    background-color: #e9ecef !important;
    cursor: not-allowed !important;
}

#menu-sidebar .offcanvas-header ul.dropdown-menu.perfil-dropdown {
    flex-direction: column !important;
    background-color: white !important;
    position: absolute !important;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border: 1px solid var(--lev-gray-200);
    overflow: hidden;
    top: 60px !important;
}

#menu-sidebar .offcanvas-header ul.dropdown-menu.perfil-dropdown li {
    list-style: none !important;
    margin: 0 !important;
}

#menu-sidebar .offcanvas-header .profile [data-bs-toggle="dropdown"] {
    outline: none !important;
    box-shadow: none !important;
}

.vertical-divider {
    height: 100%;
    width: 1px;
    background-color: var(--lev-gray-200);
}

.horizontal-divider {
    height: 1px;
    width: 100%;
    background-color: var(--lev-gray-200);
}

.mobile-menu-toggle {
    display: flex;
    background-color: white;
    border-radius: 5px;
}

.mobile-menu-toggle .navbar-toggler-icon {
    color: var(--lev-primary) !important;
}