body {
    overflow-x: hidden;
    font-family: 'Circe Regular';
}

main {
    margin-top: 65px;
    margin-left: 300px;
}

/* ===== Sidebar ===== */
.sidebar {
    margin: 0;
    padding: 0;
    background-color: #766ee0;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 300px;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===== Mobile Header ===== */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: #766ee0;
    padding: 10px 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-header img { height: 40px; }
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #fff;
}

/* ===== Logo Section ===== */
.logo-section {
    position: sticky;
    top: 0;
    background: #766ee0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 15px;
    z-index: 1050;
}
.logo-section img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
}

/* ===== Menu Links ===== */
.accordion-link, .accordion-button {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px !important;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 5px;
    height: 42px;
    background: transparent !important;
    transition: background-color 0.2s ease;
}


.sidebar .accordion-link.active, .accordion-button:not(.collapsed) {
    box-shadow: none !important;
    color: #fff!important;
    background: rgba(0,0,0,0.08) !important;
}

.accordion-button::after {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")!important;
}


.sidebar .accordion-link:hover, .accordion-button:hover {
    color: #fff!important;
    background: rgba(0,0,0,0.1) !important;
}

/* ===== Submenu ===== */
.submenu a {
    padding-left: 80px;
    font-size: 0.95rem;
    margin-bottom: 5px;
    background: transparent !important;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}
.submenu .accordion-link:hover {
    background: rgba(0,0,0,0.1) !important;
}

/* ===== User Profile ===== */

.user-profile {
    position: fixed;
    bottom: 0;
    left: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 16px;
    background: #766ee0;
    color: #fff;
    z-index: 1050;
    cursor: pointer;
}

.user-profile:hover { background: #766ee0; }
.user-info { display: flex; align-items: center; gap: 8px; }
.user-menu { display: none; flex-direction: column; margin-top: 10px }
.user-menu.show { display: flex; }
.user-menu a { padding: 6px 16px; margin-bottom: 5px; }
.user-menu a:hover { background: rgba(0,0,0,0.1); }

.accordion-button:focus,
.accordion-button:active {
    outline: none !important;
    box-shadow: none !important;
}

.bg-main {
    background-color: #766ee0;
}
.nav-header {
    margin: 10px 0px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border-radius: 3px;
    padding: 8px;
}
.navbar {
    height: 72px;
    margin-left: 300px;
}
.navbar-brand {
    color: #fff !important;
    font-weight: 600;
    line-height: 75px;
}
.navbar-nav .nav-link {
    color: #fff !important;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 75px;
    font-weight: 500;
    transition: color 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255,255,255, 0.1);
}
.nav-pills .nav-link i {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
    background-color: rgba(255,255,255, 0.1);
}

#navbarNav .nav-link {
    margin: 0 10px;
}

#navbarNav .nav-link i {
    margin-right: 5px;
}


.menu-tile {
    display: flex;
    align-items: center;
    background-color: #766ee0;
    border-radius: 6px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-tile:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-icon {
    background-color: #27648B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
}

.menu-icon i {
    font-size: 3rem;
    padding: 20px;
    color: #fff;
}

.menu-text {
    flex: 1;
    padding: 0 1rem;
    font-weight: 500;
    font-size: 1.3rem;
}

.menu-section {
    margin-top: 1rem;
}

.section-title {
    color: #00497a;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        transition: left 0.3s;
    }
    .sidebar.show { left: 0; }
    .mobile-header { display: flex; }
    .content { padding-top: 70px; }

    .user-profile {
        bottom: 0;
        left: -100%;
        width: 100%;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 10px 16px;
        cursor: pointer;
    }
    .user-profile.show { left: 0; }

    .sidebar-menu {
        margin-top: 70px;
    }

    main {
        margin-left: auto;
    }

    .navbar {
        display: none;!important;
    }

    .sidebar-menu {
        padding-bottom: 150px!important;
    }

}