/* GESTESCOLA CUSTOM CSS (base Gentelella adaptado) */

/* Reset e base */
body, .nav.side-menu, .top_nav {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    background-color: #f9f9f9;
    color: #333;
}

/* Sidebar */
.left_col, .main_menu_side {
    background-color: #fff !important;
    border-right: 1px solid #ddd;
}

.left_col {
    width: 220px !important;
}

.nav-md .container.body .left_col,
.nav-md .main_container .top_nav,
.nav-md .right_col {
    margin-left: 220px;
}

/* Logotipo */
.navbar.nav_title {
    background: #fff;
    padding: 18px 15px 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.site_title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}

    .site_title i {
        font-size: 17px;
        margin-right: 6px;
        color: #007bff;
    }

/* Perfil lateral */
.profile.clearfix,
.sidebar-profile {
    text-align: center;
    padding: 15px 10px;
    border-bottom: 1px solid #e0e0e0;
}

    .profile.clearfix img,
    .sidebar-profile img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 8px;
    }

    .profile_info span,
    .sidebar-profile strong {
        color: #444;
        font-size: 12px;
        font-weight: 500;
    }

    .sidebar-profile .btn-group,
    .sidebar-profile .d-flex {
        margin-top: 8px;
        justify-content: center;
    }

    .sidebar-profile a.btn {
        border-radius: 4px;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        padding: 0;
    }

/* Menu lateral */
.nav.side-menu > li > a {
    padding: 9px 14px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .nav.side-menu > li > a:hover,
    .nav.side-menu > li.active > a {
        background-color: #f2f2f2;
        color: #007bff;
        border-left: 3px solid #007bff;
    }

    .nav.side-menu > li > a i {
        margin-right: 8px;
        color: #666;
    }

/* Submenu */
.nav.child_menu {
    background-color: #ffffff;
    border-left: 3px solid #007bff;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.08);
    padding: 6px 0;
    min-width: 190px;
    border-radius: 4px;
    margin-top: 2px;
}

    .nav.child_menu > li > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #333 !important;
        background-color: #fff !important;
        font-size: 12px;
        padding: 8px 32px 8px 32px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

        .nav.child_menu > li > a:hover {
            background-color: #f0f0f0;
            color: #007bff;
            font-weight: 500;
        }

    .nav.child_menu .badge {
        font-size: 11px;
        padding: 4px 6px;
        min-width: 24px;
        text-align: center;
        border-radius: 10px;
    }

/* Navegação superior */
.top_nav {
    height: 60px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

    .top_nav .nav-item {
        font-weight: 500;
        font-size: 13px;
        color: #333;
    }

/* Responsividade */
@media (max-width: 991.98px) {
    .left_col {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 220px;
        z-index: 1001;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body.menu_open .left_col {
        transform: translateX(0);
    }

    .top_nav,
    .right_col {
        margin-left: 0 !important;
    }

    .main_container {
        overflow-x: hidden;
    }

    .nav.toggle {
        display: block !important;
    }

    .right_col::before {
        content: '';
        display: none;
    }

    body.menu_open .right_col::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .right_col {
        width: 100% !important;
        padding: 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 767.98px) {
    .site_title {
        font-size: 14px;
    }

    .sidebar-profile strong {
        font-size: 12px;
    }

    .sidebar-profile a.btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .nav.side-menu > li > a {
        font-size: 13px;
        padding: 8px 14px;
    }

    .nav.child_menu > li > a {
        font-size: 12px;
        padding: 6px 0 6px 24px;
    }
}

@media (max-width: 575.98px) {
    .nav.toggle {
        padding-left: 10px;
    }

    .top_nav {
        padding: 0 15px;
    }

        .top_nav .nav-item {
            font-size: 12px;
        }

    .site_title i {
        font-size: 16px;
    }
}
