/* Sidebar base */
.custom-sidebar {
    width: 220px;
    min-height: 100vh;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

/* Sidebar menu */
.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Sidebar menu items */
.sidebar-menu li {
    border-bottom: 1px solid #ddd;
}

/* Links */
.sidebar-link {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 10px 14px; /* Less height */
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

.sidebar-link:hover {
    background-color: #e9ecef;
}

/* Icon styling */
.sidebar-link i {
    width: 20px; /* Fixed icon width */
    text-align: center;
    margin-right: 10px; /* Space between icon & text */
    font-size: 16px;
}

/* Submenu */
.submenu {
    display: none;
    list-style: none;
    padding-left: 35px; /* Indent submenu */
    margin: 0;
}

.has-submenu.open .submenu {
    display: block;
}

.submenu li {
    padding: 6px 0; /* Reduce submenu item height */
}

.submenu a {
    font-size: 13px;
    color: #555;
}

/* Logo styling */
.sidebar-logo {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.sidebar-logo img {
    max-width: 80%;
    height: auto;
}
/* Smaller submenu arrow */
.sidebar-link .submenu-arrow {
    font-size: 10px;   /* smaller arrow size */
    margin-left: auto; /* push to right */
    color: #666;       /* subtle color */
    transition: transform 0.2s ease;
}

/* Rotate arrow when submenu is open */
.has-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

/* Responsive tweaks */
@media (max-width: 767px) {
    .custom-sidebar {
        width: 100%;
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1050;
    }
    .custom-sidebar.active {
        display: block;
    }
    .sidebar-link {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* Hide sidebar on small screens by default */
@media (max-width: 767px) {
    .custom-sidebar {
        display: none;
    }

    .custom-sidebar.active {
        display: block;
    }
}
li[data-key="siteadminnode"] {
    display: none !important;
}
/* Hide all dropdown items inside the user menu */
#carousel-item-main .dropdown-item {
    display: none !important;
}

/* Show only Profile, Logout, and Change Password links */
#carousel-item-main .dropdown-item[href*="user/profile.php"],
#carousel-item-main .dropdown-item[href*="login/logout.php"],
#carousel-item-main .dropdown-item[href*="login/change_password.php"] {
    display: block !important;
}

/* Optional: hide unnecessary dividers */
#carousel-item-main .dropdown-divider {
    display: none !important;
}


/* Hide the message icon block */
.popover-region[data-region="popover-region-messages"] {
    display: none !important;
}


/* Hide Topic 1, 2, 3,4 in ALL courses */
li#section-1,
li#section-2,
li#section-3,li#section-4 {
    display: none !important;
}

/* Hide also in Course Index (left navigation drawer in Moodle 4.x) */
.courseindex .courseindex-section[data-number="1"],
.courseindex .courseindex-section[data-number="2"],
.courseindex .courseindex-section[data-number="3"],
.courseindex .courseindex-section[data-number="4"]{
    display: none !important;
}

.course-content .topics .section .content .changenumsections{
	 display: none !important;
}

/* Hide Announcements forum in course sections */
li.activity.forum[data-forum-type="news"],
li.activity.forum.modtype_forum {
    display: none !important;
}

/* Hide Announcements from Course Index (sidebar) */
.courseindex .courseindex-section .courseindex-item[data-forum-type="news"] {
    display: none !important;
}

/* Hide General section title */
.course-section-header .sectionname {
    display: none !important;
}

/* Hide Collapse all / Expand all */
.course-section-header .section-collapsemenu {
    display: none !important;
}

/* Hide triangle expand/collapse icon */
.course-section-header .icons-collapse-expand {
    display: none !important;
}

/* Hide three-dots action menu */
.course-section-header .section_action_menu {
    display: none !important;
}
/*Hide summery icon from course */
.courses .coursebox .info .moreinfo {
	
	 display: none !important;
}

/* Hide Category ID 1 Everywhere */
a[data-categoryid="1"],
#category-1,
li.category[data-categoryid="1"],
tr[data-categoryid="1"],
div[data-categoryid="1"],
#course-category-1 {
    display: none !important;
}



