/**
 * CourseExplorer Menu Styles
 */

/* Remove underline from all navigation and menu links */
#menu-main-menu a,
.menu a,
nav a,
header a,
.ce-user-menu a,
.ce-auth-menu a,
.menu-item.ce-user-menu a,
.menu-item.ce-auth-menu a,
.ce-login-link,
.ce-register-link,
.ce-profile-link,
#Top_bar a,
#Header a {
    text-decoration: none !important;
}

/* Also remove underline on hover */
#menu-main-menu a:hover,
.menu a:hover,
nav a:hover,
header a:hover,
#Top_bar a:hover,
#Header a:hover {
    text-decoration: none !important;
}

/* Force Dashboard to be visible */
.ce-dashboard-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* User Menu in Navigation */
.ce-user-menu .ce-profile-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ce-user-icon {
    font-size: 1.2em;
}

.ce-user-name {
    font-weight: 600;
}

.ce-user-submenu {
    min-width: 150px;
}

.ce-auth-menu .ce-login-link,
.ce-auth-menu .ce-register-link {
    transition: color 0.3s ease;
}

.ce-auth-menu .ce-login-link:hover,
.ce-auth-menu .ce-register-link:hover {
    color: var(--ce-primary-color, #2271b1);
}

/* Menu dropdown styling */
.ce-user-menu .sub-menu {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ce-user-menu .sub-menu .menu-item a {
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.ce-user-menu .sub-menu .menu-item a:hover {
    background-color: #f8f9fa;
}

/* Responsive menu adjustments */
@media (max-width: 768px) {
    .ce-user-menu .ce-user-name {
        display: none;
    }

    .ce-auth-menu .ce-login-link,
    .ce-auth-menu .ce-register-link {
        padding: 0.5rem 1rem;
        display: block;
    }
}

/* Loading state for menu items */
.ce-menu-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Menu integration with popular themes */
.menu-item.ce-user-menu,
.menu-item.ce-auth-menu {
    position: relative;
}

/* Notification badge for profile menu */
.ce-profile-link .ce-notification-badge {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    position: absolute;
    top: -5px;
    right: -5px;
}
