@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* RESET E CONFIGURAÇÕES GERAIS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.custom-body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
}

/* MENU SUPERIOR */
.custom-header {
    background-color: #61F3FB;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.custom-header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-btn-toggle {
    background: none;
    border: 1px solid #00000044;
    color: #000000;
    font-size: 20px;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.custom-btn-toggle:hover {
    background-color: #00000011;
}

.custom-logo {
    color: #000000;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.custom-nav-desktop {
    display: flex;
    gap: 20px;
}

.custom-nav-link {
    color: #000000cc;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-nav-link:hover, .custom-nav-link.active {
    color: #000000;
    /* background-color: #52cfd6; */
}

/* BOTÃO HAMBÚRGUER (MOBILE) */
.custom-btn-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.custom-btn-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000000;
    border-radius: 2px;
}

/* MALHA DE LEIAUTE (GRID) */
.custom-layout-container {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 20px;
    padding: 20px;
    flex: 1;
    transition: grid-template-columns 0.3s ease;
}

/* Estado quando a barra esquerda é ocultada */
.custom-layout-container.left-hidden {
    grid-template-columns: 0px 1fr 250px;
}

/* MENUS LATERAIS (ASIDE) */
.custom-sidebar {
    overflow: hidden;
    transition: opacity 0.2s ease;
}

.custom-layout-container.left-hidden .custom-sidebar-left {
    opacity: 0;
    pointer-events: none;
}

.custom-sidebar-content {
    background-color: transparent; /* Removeu o fundo do card */
    padding: 15px 10px;
    min-height: 200px;
}

/* Linha divisória direita para o menu esquerdo */
.custom-sidebar-left {
    border-right: 1px solid #dee2e6;
}

/* Linha divisória esquerda para o menu direito */
.custom-sidebar-right {
    border-left: 1px solid #dee2e6;
}

.custom-sidebar h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.custom-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-sidebar-nav a {
    color: #0d6efd;
    text-decoration: none;
    font-size: 14px;
}

.custom-sidebar-nav a:hover {
    text-decoration: none;
    /* text-shadow: 0 1px 2px rgba(13, 110, 253, 0.3); */
    /* shadow: 0 1px 2px rgba(13, 110, 253, 0.3); */
    /* background-color: #0d6efd11; */
    /* border-radius: 10px; */
}

/* CONTEÚDO PRINCIPAL */
.custom-main-content {
    min-width: 0;
}

.custom-card {
    background-color: transparent; /* Removeu o fundo branco */
    border: none;                  /* Removeu o contorno do card */
    border-radius: 0;
    padding: 20px 10px;
    min-height: 400px;
}

/* RODAPÉ */
.custom-footer {
    background-color: #61F3FB;
    color: #000000;
    text-align: center;
    padding: 15px;
    margin-top: auto;
    font-size: 14px;
    border-top: 1px solid #52cfd6; /* Linha sutil separando o rodapé */
}

/* MENU MOBILE OFFCANVAS & OVERLAY */
/* MENU MOBILE OFFCANVAS & OVERLAY (Modificado para o lado direito) */
.custom-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px; /* Alterado de left para right para esconder à direita */
    width: 300px;
    height: 100vh;
    background-color: #212529;
    color: #fff;
    z-index: 1050;
    transition: right 0.3s ease; /* Transição agora monitora a propriedade right */
    display: flex;
    flex-direction: column;
}

.custom-mobile-menu.open {
    right: 0; /* Alinha o menu na borda direita quando aberto */
}

.custom-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #343a40;
}

.custom-mobile-menu-header h2 {
    font-size: 18px;
}

.custom-btn-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.custom-mobile-menu-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.custom-mobile-section h4 {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.custom-mobile-section a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #2c3034;
}

.custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.custom-overlay.open {
    display: block;
}

/* RESPONSIVIDADE (Breakpoints nativos equivalentes ao LG do Bootstrap) */
@media (max-width: 992px) {
    .custom-sidebar-left, 
    .custom-sidebar-right {
        border: none !important;
    }
    
    .custom-nav-desktop, .custom-btn-toggle, .custom-sidebar {
        display: none !important;
    }

    .custom-btn-hamburger {
        display: flex;
    }

    .custom-layout-container, .custom-layout-container.left-hidden {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}
