.rx-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 2px 8px !important;
}

    .rx-topbar .mud-icon-button {
        margin: 0 4px;
        transition: all 0.2s ease;
        border-radius: 10px;
        color: #1e293b !important;
    }

        .rx-topbar .mud-icon-button:hover {
            background: #f1f5f9;
            color: #6366f1 !important;
            transform: scale(1.05);
        }

/* User Profile Section */
.user-profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    border-radius: 40px;
    background: #f8fafc;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-left: 8px;
}

    .user-profile-container:hover {
        background: #f1f5f9;
        transform: translateY(-1px);
    }

/* User Avatar */
.user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Online Status Indicator */
.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

    .online-status.offline {
        background: #9ca3af;
    }

    .online-status.away {
        background: #f59e0b;
    }

    .online-status.busy {
        background: #ef4444;
    }

/* User Info */
.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.user-role {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* Dropdown Menu Styling */
.user-dropdown {
    margin-top: 8px;
    min-width: 240px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.dropdown-header {
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
    color: #334155;
}

    .dropdown-item:hover {
        background: #f1f5f9;
    }

.dropdown-icon {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

/* Notification Badge */
.notification-badge {
    position: relative;
}

.badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 768px) {
    .user-info {
        display: none;
    }

    .user-profile-container {
        padding: 4px;
    }

    .rx-topbar {
        padding: 4px 12px !important;
    }
}
