.custom-toggler {
    border: 2px solid var(--accent) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.custom-toggler:hover {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(79, 70, 229, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.custom-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.menu-li-icon {
    margin-left: 5px;
}

.submenu-hover-effect:hover {
    background-color: #0d6efd !important;
    color: white !important;
    transform: translateX(5px);
    transition: all 0.3s ease;
    border-radius: 5px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    object-fit: cover;
    overflow: hidden;
}

.profile-avatar:hover {
    transform: scale(1.1);
    border-color: #0d6efd;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dropdown-menu-profile {
    min-width: 220px;
    padding: 10px 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: none;
    margin-top: 10px;
}

.profile-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.profile-dropdown-header .user-name {
    font-weight: 600;
    color: #333;
}

.profile-dropdown-header .user-email {
    font-size: 13px;
    color: #888;
}

.dropdown-item-custom {
    padding: 10px 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-item-custom:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    padding-right: 25px;
}

.dropdown-item-custom i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-item-danger {
    color: #dc3545;
}

.dropdown-item-danger:hover {
    background-color: #dc3545;
    color: white;
}

.online-badge {
    width: 12px;
    height: 12px;
    background-color: #28a745;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    bottom: 0;
    right: 0;
}

.navbar-search-wrapper {
    flex: 0 0 60%;
    max-width: 60%;
}

.navbar-actions-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.navbar-search-form {
    margin-right: 5px;
}

.navbar-bottom-r {
    display: flex;
    flex-wrap: wrap;
}

.offcanvas-end {
    width: 320px !important;
    border-radius: 20px 0 0 20px !important;
}

.offcanvas-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
}

.offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.offcanvas-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.offcanvas-header .offcanvas-title {
    color: white !important;
}

.offcanvas-body .nav-link {
    padding: 12px 15px !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}

.offcanvas-body .nav-link:hover {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%) !important;
    transform: translateX(-5px) !important;
    color: var(--accent) !important;
}

.offcanvas-body .nav-link i {
    margin-left: 10px;
    width: 24px;
    text-align: center;
    color: var(--accent);
}

.offcanvas-body .nav-item {
    border-bottom: 1px solid #f0f0f0 !important;
}

.offcanvas-body .nav-item:last-child {
    border-bottom: none !important;
}

.offcanvas-body .dropdown-menu {
    border: none !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 5px !important;
    margin: 5px 0 !important;
    text-align: right !important;
    right: 0 !important;
    left: auto !important;
}

.offcanvas-body .dropdown-item {
    border-radius: 8px !important;
    padding: 10px 15px !important;
    transition: all 0.3s ease !important;
    text-align: right !important;
    direction: rtl !important;
}

.offcanvas-body .dropdown-item:hover {
    background: var(--accent) !important;
    color: white !important;
    transform: translateX(-5px);
}

.offcanvas-header .btn-close-custom {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offcanvas-header .btn-close-custom:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.offcanvas-body .dropdown-item i {
    margin-left: 10px;
    margin-right: 0 !important;
}

.offcanvas-body .dropdown-item .menu-li-icon {
    margin-left: 8px;
    margin-right: 0 !important;
}

@media (max-width: 992px) or (max-width: 576px)
or (max-width: 400px) or (max-width: 768px) {
    .navbar-bottom-r {
        width: 100%;
    }

    .header-top-r {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
}

@media (max-width: 457px) {
    .navbar-bottom-r {
        display: inline;
    }

    .navbar-button-container {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .nav-btn {
        width: 50%;
    }

    .navbar-search-form {
        margin-right: 0;
    }

    .hero-btn-row {
        display: flex;
        gap: 10px;
    }
}